[PATCH v2] staging: greybus: arche-platform: Switch to the gpio descriptor interface

2018-11-16 Thread Nishad Kamdar
Use the gpiod interface instead of the deprecated old non-descriptor interface. Signed-off-by: Nishad Kamdar --- Changes in v2: - Move comment to the same line as to what it applies to. --- drivers/staging/greybus/arche-platform.c | 119 --- 1 file changed, 41 insertions(+),

Re: [PATCH] staging: greybus: arche-platform: Switch to the gpio descriptor interface

2018-11-16 Thread Nishad Kamdar
On Fri, Nov 16, 2018 at 05:06:22PM +0100, Johan Hovold wrote: > On Fri, Nov 16, 2018 at 08:47:44PM +0530, Nishad Kamdar wrote: > > Use the gpiod interface instead of the deprecated > > old non-descriptor interface. > > > > Signed-off-by: Nishad Kamdar > > --- > > Always include a change log here

Re: Memory hotplug softlock issue

2018-11-16 Thread Baoquan He
On 11/16/18 at 10:14am, Michal Hocko wrote: > Could you try to apply this debugging patch on top please? It will dump > stack trace for each reference count elevation for one page that fails > to migrate after multiple passes. Thanks, applied and fixed two code issues. The dmesg has been sent to y

[PATCH] spi: npcm: Fix uninitialized variable warning

2018-11-16 Thread Olof Johansson
The compiler has no way to know that rsize 1 or 2 are the only valid values. Also simplify the code a bit with early return. The warning was: drivers/spi/spi-npcm-pspi.c:215:6: warning: 'val' may be used uninitialized in this function [-Wmaybe-uninitialized] Signed-off-by: Olof Johansson ---

[PATCH] mtd: rawnand: qcom: Namespace prefix some commands

2018-11-16 Thread Olof Johansson
PAGE_READ is used by RISC-V arch code included through mm headers, and it makes sense to bring in a prefix on these in the driver. drivers/mtd/nand/raw/qcom_nandc.c:153: warning: "PAGE_READ" redefined #define PAGE_READ 0x2 In file included from include/linux/memremap.h:7, from

Re: [PATCH] RISC-V: Build flat and compressed kernel images

2018-11-16 Thread Anup Patel
On Sat, Nov 17, 2018 at 2:43 AM Palmer Dabbelt wrote: > > On Sun, 11 Nov 2018 21:55:15 PST (-0800), a...@brainfault.org wrote: > > This patch extends Linux RISC-V build system to build and install: > > Image - Flat uncompressed kernel image > > Image.gz - Flat and GZip compressed kernel image > >

Re: [PATCH 4/6] dt-bindings:iio:resolver: Add docs for ad2s90

2018-11-16 Thread Matheus Tavares Bernardino
On Sun, Nov 11, 2018 at 9:48 AM Jonathan Cameron wrote: > > On Fri, 9 Nov 2018 20:00:42 -0200 > Matheus Tavares wrote: > > > This patch adds the device tree binding documentation for the ad2s90 > > resolver-to-digital converter. > > > > Signed-off-by: Matheus Tavares > > --- > > .../bindings/i

Applied "ASoC: rt5663: Add documentation for power supply support" to the asoc tree

2018-11-16 Thread Mark Brown
The patch ASoC: rt5663: Add documentation for power supply support has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours)

Applied "spi: pxa2xx: Fix '"CONFIG_OF" is not defined' warning" to the spi tree

2018-11-16 Thread Mark Brown
The patch spi: pxa2xx: Fix '"CONFIG_OF" is not defined' warning has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and se

Applied "ASoC: tlv320dac33: clean up indentation, remove extraneous tab" to the asoc tree

2018-11-16 Thread Mark Brown
The patch ASoC: tlv320dac33: clean up indentation, remove extraneous tab has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 h

Applied "ASoC: arizona: fix indentation issue with return statement" to the asoc tree

2018-11-16 Thread Mark Brown
The patch ASoC: arizona: fix indentation issue with return statement has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours

Applied "ASoC: tlv320aic31xx: asihpi: clean up indentation, remove extraneous tab" to the asoc tree

2018-11-16 Thread Mark Brown
The patch ASoC: tlv320aic31xx: asihpi: clean up indentation, remove extraneous tab has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the

Applied "ASoC: amd: fix spelling mistake "Inavlid" -> "Invalid"" to the asoc tree

2018-11-16 Thread Mark Brown
The patch ASoC: amd: fix spelling mistake "Inavlid" -> "Invalid" has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) an

Applied "ASoC: rt5663: Fix error handling of regulator_set_load" to the asoc tree

2018-11-16 Thread Mark Brown
The patch ASoC: rt5663: Fix error handling of regulator_set_load has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) an

Applied "ASoC: qcom: clean up indentation, remove extraneous tab" to the asoc tree

2018-11-16 Thread Mark Brown
The patch ASoC: qcom: clean up indentation, remove extraneous tab has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) a

[PATCH] regulator: Fix return value of _set_load() stub

2018-11-16 Thread Mark Brown
The stub implementation of _set_load() returns a mode value which is within the bounds of valid return codes for success (the documentation just says that failures are negative error codes) but not sensible or what the actual implementation does. Fix it to just return 0. Reported-by: Cheng-Yi Chi

Re: [PATCH] ASoC: rt5663: Fix error handling of regulator_set_load

2018-11-16 Thread Mark Brown
On Fri, Nov 16, 2018 at 05:28:56PM +0800, Cheng-Yi Chiang wrote: > The default implementation of regulator_set_load returns > REGULATOR_MODE_NORMAL, which is positive. The stub does indeed do that however that just looks like a bug - the actual implementation returns 0 on success and the other use

Re: [PATCH] ASoC: imx-audmux: complete dt-bindings for imx6

2018-11-16 Thread Mark Brown
On Fri, Nov 16, 2018 at 10:45:22PM +0800, Shawn Guo wrote: > On Fri, Nov 16, 2018 at 11:25:07AM +0100, Clément Péron wrote: > > It's still quite new for me to submit patch, but if this patch should > > be sent to ASoC maintainer maybe there is a line missing in the > > MAINTAINERS file no ? > @Ma

Re: [PATCH] riscv: fix warning in arch/riscv/include/asm/module.h

2018-11-16 Thread Olof Johansson
On Thu, Nov 8, 2018 at 11:32 AM Palmer Dabbelt wrote: > > On Thu, 08 Nov 2018 11:07:00 PST (-0800), david.abdurachma...@gmail.com wrote: > > Fixes warning: 'struct module' declared inside parameter list will not be > > visible outside of this definition or declaration > > > > Signed-off-by: David

Re: [RFC PATCH 01/13] arm: Fix mutual exclusion in arch_gettimeoffset

2018-11-16 Thread Michael Schmitz
Hi Finn, Am 17.11.2018 um 11:49 schrieb Finn Thain: On Fri, 16 Nov 2018, Russell King - ARM Linux wrote: The EBSA110 is probably in a similar boat - I don't remember whether it had 16MB or 32MB as the maximal amount of memory, but memory was getting tight with some kernels even running a mini

Re: [PATCH] arm64: Explicitly mark 64-bit constant as unsigned long

2018-11-16 Thread Olof Johansson
On Fri, Nov 16, 2018 at 6:27 PM Will Deacon wrote: > > Hi Olof, > > On Fri, Nov 16, 2018 at 05:54:56PM -0800, Olof Johansson wrote: > > Makes sparse happy. Before: > > > > arch/arm64/include/asm/sysreg.h:471:42: warning: constant > > 0x is so big it is unsigned long > > arch/arm64

Re: [PATCH] mm: use this_cpu_cmpxchg_double in put_cpu_partial

2018-11-16 Thread Wei Yang
On Fri, Nov 16, 2018 at 05:33:35PM -0800, Wengang Wang wrote: >The this_cpu_cmpxchg makes the do-while loop pass as long as the >s->cpu_slab->partial as the same value. It doesn't care what happened to >that slab. Interrupt is not disabled, and new alloc/free can happen in the >interrupt handlers.

Re: [PATCH] staging: gasket: formatting fixes

2018-11-16 Thread Todd Poynor
On Mon, Nov 12, 2018 at 1:27 PM Robert Deal wrote: > > Reformat arguments in a few functions in gasket_page_table.c to better > follow linux kernel formatting standards. > > Signed-off-by: Robert Deal > --- > drivers/staging/gasket/gasket_page_table.c | 24 ++ > 1 file change

Re: [PATCH v2] riscv: add asm/unistd.h UAPI header

2018-11-16 Thread Olof Johansson
On Thu, Nov 8, 2018 at 11:02 AM David Abdurachmanov wrote: > > Marcin Juszkiewicz reported issues while generating syscall table for riscv > using 4.20-rc1. The patch refactors our unistd.h files to match some other > architectures. > > - Add asm/unistd.h UAPI header, which has __ARCH_WANT_NEW_STA

[Patch v5 09/16] x86/smt: Convert cpu_smt_control check to cpu_smt_enabled static key

2018-11-16 Thread Tim Chen
The checks to cpu_smt_control outside of kernel/cpu.c can be converted to use cpu_smt_enabled key to run SMT specific code. Save the export of cpu_smt_control and convert usage of cpu_smt_control to cpu_smt_enabled outside of kernel/cpu.c. Signed-off-by: Tim Chen --- arch/x86/kernel/cpu/bugs.c

[Patch v5 04/16] x86/speculation: Add X86_FEATURE_USE_IBRS_ENHANCED

2018-11-16 Thread Tim Chen
STIBP is not needed when enhanced IBRS is used for Spectre V2 mitigation. A CPU feature flag to indicate that enhanced IBRS is used will be handy for skipping STIBP for this case. Add X86_FEATURE_USE_IBRS_ENHANCED feature bit to indicate enhanced IBRS is used for Spectre V2 mitigation. Signed-off

[Patch v5 08/16] smt: Create cpu_smt_enabled static key for SMT specific code

2018-11-16 Thread Tim Chen
In later code, STIBP will be turned on/off in the context switch code path when SMT is enabled. Checks for SMT is best avoided on such hot paths. Create cpu_smt_enabled static key to turn on such SMT specific code statically. This key is set in code under hot plug, so it is limited in scope to a

[Patch v5 12/16] x86/speculation: Create PRCTL interface to restrict indirect branch speculation

2018-11-16 Thread Tim Chen
Create PRCTL interface to restrict an application's indirect branch speculation. This will protect the application against spectre v2 attack from another application. Invocations: Check indirect branch speculation status with - prctl(PR_GET_SPECULATION_CTRL, PR_SPEC_INDIR_BRANCH, 0, 0, 0); Enabl

[Patch v5 13/16] security: Update speculation restriction of a process when modifying its dumpability

2018-11-16 Thread Tim Chen
When a task is made non-dumpable, a higher level of security is implied implicitly as its memory is imposed with access restriction. Many daemons touching sensitive data (e.g. sshd) make theselves non-dumpable. Such tasks should have speculative execution restricted to protect them from attacks ta

[Patch v5 07/16] x86/speculation: Reorganize speculation control MSRs update

2018-11-16 Thread Tim Chen
The logic to detect whether there's a change in the previous and next task's flag relevant to update speculation control MSRs are spread out across multiple functions. Consolidate all checks needed for updating speculation control MSRs to __speculation_ctrl_update(). This makes it easy to pick th

[Patch v5 11/16] x86/speculation: Add Spectre v2 app to app protection modes

2018-11-16 Thread Tim Chen
Add new protection modes for Spectre v2 mitigations against Spectre v2 attacks on user processes. There are three modes: strict mode: In this mode, IBPB and STIBP are deployed full time to protect all processes. lite mode: In this mode, IBPB and STIBP are

[Patch v5 02/16] x86/speculation: Remove unnecessary ret variable in cpu_show_common()

2018-11-16 Thread Tim Chen
Remove unnecessary ret variable in cpu_show_common() to make the code more concise. Signed-off-by: Tim Chen --- arch/x86/kernel/cpu/bugs.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c index 5ac7070..84e3579 100644

[Patch v5 10/16] x86/speculation: Turn on or off STIBP according to a task's TIF_STIBP

2018-11-16 Thread Tim Chen
If STIBP is used all the time, tasks that do not need STIBP protection will get unnecessarily slowed down by STIBP. To apply STIBP only to tasks that need it, a new task TIF_STIBP flag is created. A x86 CPU uses STIBP only for tasks labeled with TIF_STIBP. During context switch, this flag is chec

[Patch v5 06/16] x86/speculation: Rename SSBD update functions

2018-11-16 Thread Tim Chen
During context switch, the SSBD bit in SPEC_CTRL MSR is updated according to changes in TIF_SSBD flag in the current and next running task. Currently, only the bit controlling speculative store in SPEC_CTRL MSR is updated and the related update functions all have "speculative_store" or "ssb" in the

[Patch v5 00/16] Provide task property based options to enable Spectre v2 userspace-userspace protection

2018-11-16 Thread Tim Chen
The previous version of this series had a patch to apply TIF_STIBP updates to all threads affected by a dumpability change, and keeping all the CPUs' SPEC CTRL MSRs in sync with running task's TIF_STIBP. However, this feature adds much overhead and complexities for little gain. Normally a task ma

[Patch v5 01/16] x86/speculation: Clean up spectre_v2_parse_cmdline()

2018-11-16 Thread Tim Chen
Remove unnecessary else statement in spectre_v2_parse_cmdline() to save a indentation level. Signed-off-by: Tim Chen --- arch/x86/kernel/cpu/bugs.c | 27 +-- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/b

[Patch v5 14/16] x86/speculation: Use STIBP to restrict speculation on non-dumpable task

2018-11-16 Thread Tim Chen
When a task changes its dumpability, arch_update_spec_ctrl_restriction() is called to place restriction on the task's speculative execution according to dumpability changes. Implements arch_update_spec_restriction() for x86. Use STIBP to restrict speculative execution when running a task set to n

[Patch v5 16/16] x86: Group thread info flags by functionality

2018-11-16 Thread Tim Chen
The thread info flags are currently randomly distributed in the header file arch/x86/include/asm/thread_info.h. Group TIF flags together according to the following categories: operation mode, syscall mode, pending work, task status and security status. Signed-off-by: Tim Chen --- arch/x86/inclu

[Patch v5 15/16] x86/speculation: Update comment on TIF_SSBD

2018-11-16 Thread Tim Chen
The comment to TIF_SSBD uses the obsoleted name "Reduced Data Speculation". Update comment use the correct name "Speculative store bypass disable". Signed-off-by: Tim Chen --- arch/x86/include/asm/thread_info.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include

[Patch v5 03/16] x86/speculation: Reorganize cpu_show_common()

2018-11-16 Thread Tim Chen
The Spectre V2 printout in cpu_show_common() handles conditionals for the various mitigation methods directly in the sprintf() argument list. That's hard to read and will become unreadable if more complex decisions need to be made for a particular method. Move the conditionals for STIBP and IBPB s

[Patch v5 05/16] x86/speculation: Disable STIBP when enhanced IBRS is in use

2018-11-16 Thread Tim Chen
If enhanced IBRS is engaged, STIBP is redundant in mitigating Spectre v2 user space exploits from hyperthread sibling. Disable STIBP when enhanced IBRS is used. Signed-off-by: Tim Chen --- arch/x86/kernel/cpu/bugs.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/x86/kerne

Re: [PATCH] arm64: Explicitly mark 64-bit constant as unsigned long

2018-11-16 Thread Will Deacon
Hi Olof, On Fri, Nov 16, 2018 at 05:54:56PM -0800, Olof Johansson wrote: > Makes sparse happy. Before: > > arch/arm64/include/asm/sysreg.h:471:42: warning: constant 0x > is so big it is unsigned long > arch/arm64/include/asm/sysreg.h:512:42: warning: constant 0x

Re: [PATCH] pinctrl: zynq: Use define directive for PIN_CONFIG_IO_STANDARD

2018-11-16 Thread Nathan Chancellor
On Fri, Nov 16, 2018 at 09:40:45AM +0100, Michal Simek wrote: > On 09. 11. 18 16:36, Nathan Chancellor wrote: > > On Fri, Nov 09, 2018 at 10:33:00AM +0100, Michal Simek wrote: > >> On 08. 11. 18 16:01, Nathan Chancellor wrote: > >>> On Thu, Nov 08, 2018 at 07:45:42AM +0100, Michal Simek wrote: > >>

[PATCH] arm64: Explicitly mark 64-bit constant as unsigned long

2018-11-16 Thread Olof Johansson
Makes sparse happy. Before: arch/arm64/include/asm/sysreg.h:471:42: warning: constant 0x is so big it is unsigned long arch/arm64/include/asm/sysreg.h:512:42: warning: constant 0x is so big it is unsigned long Signed-off-by: Olof Johansson --- arch/arm64/includ

[PATCH] mm: use this_cpu_cmpxchg_double in put_cpu_partial

2018-11-16 Thread Wengang Wang
The this_cpu_cmpxchg makes the do-while loop pass as long as the s->cpu_slab->partial as the same value. It doesn't care what happened to that slab. Interrupt is not disabled, and new alloc/free can happen in the interrupt handlers. Theoretically, after we have a reference to the it, stored in _old

Re: [PATCH v2 2/3] kernel.h: hide __is_constexpr() from sparse

2018-11-16 Thread Luc Van Oostenryck
On Fri, Nov 09, 2018 at 10:35:33AM +0100, Johannes Berg wrote: > From: Johannes Berg > > __is_constexpr() is a work of art, understandable only to the most > respected wizards of C. Even sparse doesn't seem to belong to that > group and warns that there's an "expression using sizeof(void)". > >

Re: [PATCH v2 1/3] compiler-gcc: hide COMPILER_HAS_GENERIC_BUILTIN_OVERFLOW from sparse

2018-11-16 Thread Luc Van Oostenryck
On Fri, Nov 09, 2018 at 10:35:32AM +0100, Johannes Berg wrote: > From: Johannes Berg > > Sparse doesn't support all the overflow builtins, so just hide > them from it to avoid lots of warnings/errors reported by it. The development version of sparse support these builtins since their introductio

[PATCH v3 0/7] freezer for cgroup v2

2018-11-16 Thread Roman Gushchin
This patchset implements freezer for cgroup v2. It provides similar functionality as v1 freezer, but the interface conforms to the cgroup v2 interface design principles, and it provides a better user experience: tasks can be killed, ptrace works, there is no separate controller, which has to be en

[PATCH v3 2/7] cgroup: implement __cgroup_task_count() helper

2018-11-16 Thread Roman Gushchin
The helper is identical to the existing cgroup_task_count() except it doesn't take the css_set_lock by itself, assuming that the caller does. Also, move cgroup_task_count() implementation into kernel/cgroup/cgroup.c, as there is nothing specific to cgroup v1. Signed-off-by: Roman Gushchin Cc: Te

[PATCH v3 3/7] cgroup: protect cgroup->nr_(dying_)descendants by css_set_lock

2018-11-16 Thread Roman Gushchin
Now the number of descendant cgroups and the number of dying descendant cgroups are synchronized using the cgroup_mutex. The number of descendant cgroups will be required by the cgroup v2 freezer, which will use it to determine if a cgroup is frozen (depending on total number of descendants and nu

[PATCH v3 5/7] kselftests: cgroup: don't fail on cg_kill_all() error in cg_destroy()

2018-11-16 Thread Roman Gushchin
If the cgroup destruction races with an exit() of a belonging process(es), cg_kill_all() may fail. It's not a good reason to make cg_destroy() fail and leave the cgroup in place, potentially causing next test runs to fail. Signed-off-by: Roman Gushchin Cc: Shuah Khan Cc: Tejun Heo Cc: kernel-t.

[PATCH v3 6/7] kselftests: cgroup: add freezer controller self-tests

2018-11-16 Thread Roman Gushchin
This patch implements six tests for the freezer controller for cgroup v2: 1) a simple test, which aims to freeze and unfreeze a cgroup with 100 processes 2) a more complicated tree test, which creates a hierarchy of cgroups, puts some processes in some cgroups, and tries to freeze and unfreeze diff

[PATCH v3 1/7] cgroup: rename freezer.c into legacy_freezer.c

2018-11-16 Thread Roman Gushchin
Freezer.c will contain an implementation of cgroup v2 freezer, so let's rename the v1 freezer to avoid naming conflicts. Signed-off-by: Roman Gushchin Cc: Tejun Heo Cc: kernel-t...@fb.com --- kernel/cgroup/Makefile| 2 +- kernel/cgroup/{freezer.c => legacy_freezer.c} | 0

[PATCH v3 4/7] cgroup: cgroup v2 freezer

2018-11-16 Thread Roman Gushchin
Cgroup v1 implements the freezer controller, which provides an ability to stop the workload in a cgroup and temporarily free up some resources (cpu, io, network bandwidth and, potentially, memory) for some other tasks. Cgroup v2 lacks this functionality. This patch implements freezer for cgroup v2

Re: [PATCH v3 1/2] x86/fpu: track AVX-512 usage of tasks

2018-11-16 Thread Li, Aubrey
On 2018/11/17 7:10, Dave Hansen wrote: > On 11/15/18 4:21 PM, Li, Aubrey wrote: >> "Core cycles where the core was running with power delivery for license >> level 2 (introduced in Skylake Server microarchitecture). This includes >> high current AVX 512-bit instructions." >> >> I translated license

Re: [PATCH v2 2/2] build_bug.h: remove all dummy BUILD_BUG_ON stubs for sparse

2018-11-16 Thread Luc Van Oostenryck
On Fri, Nov 16, 2018 at 03:27:25PM +0900, Masahiro Yamada wrote: > The introduction of these dummy BUILD_BUG_ON stubs dates back to > commit 903c0c7cdc21 ("sparse: define dummy BUILD_BUG_ON definition > for sparse"). At that time, BUILD_BUG_ON() was implemented with the > negative array trick, whic

Re: [Patch v4 2/3] CIFS: Add support for direct I/O write

2018-11-16 Thread Pavel Shilovsky
ср, 31 окт. 2018 г. в 15:26, Long Li : > > From: Long Li > > With direct I/O write, user supplied buffers are pinned to the memory and data > are transferred directly from user buffers to the transport layer. > > Change in v3: add support for kernel AIO > > Change in v4: > Refactor common write co

Re: [Patch v4 1/3] CIFS: Add support for direct I/O read

2018-11-16 Thread Pavel Shilovsky
Hi Long, Please find my comments below. ср, 31 окт. 2018 г. в 15:14, Long Li : > > From: Long Li > > With direct I/O read, we transfer the data directly from transport layer to > the user data buffer. > > Change in v3: add support for kernel AIO > > Change in v4: > Refactor common read code to

[PATCH 0/9] dt-bindings: Firmware node binding for ZynqMP core

2018-11-16 Thread Jolly Shah
Base firmware node and clock child node binding are part of mainline kernel. This patchset adds documentation to describe rest of the firmware child node bindings. Complete firmware DT node example is shown below for ease of understanding: firmware { zynqmp_firmware: zynqmp-firmware {

[PATCH 7/9] dt-bindings: phy: Add dt bindings for ZynqMP PHY

2018-11-16 Thread Jolly Shah
This patch adds the document describing dt bindings for ZynqMP PHY. ZynqMP SOC has a High Speed Processing System Gigabit Transceiver which provides PHY capabilties to USB, SATA, PCIE, Display Port and Ehernet SGMII controllers. Signed-off-by: Anurag Kumar Vulisha Signed-off-by: Jolly Shah Signe

[PATCH 8/9] dt-bindings: remoteproc: Add Xilinx R5 rproc binding

2018-11-16 Thread Jolly Shah
From: Wendy Liang Add device tree binding for Xilinx Cortex-r5 remoteproc. Signed-off-by: Wendy Liang Signed-off-by: Jolly Shah --- .../remoteproc/xlnx,zynqmp-r5-remoteproc.txt | 81 ++ 1 file changed, 81 insertions(+) create mode 100644 Documentation/devicetree/bi

[PATCH 4/9] dt-bindings: nvmem: Add bindings for ZynqMP nvmem driver

2018-11-16 Thread Jolly Shah
From: Nava kishore Manne Add documentation to describe Xilinx ZynqMP nvmem driver bindings. Signed-off-by: Nava kishore Manne Signed-off-by: Jolly Shah --- .../bindings/nvmem/xlnx,zynqmp-nvmem.txt | 44 ++ 1 file changed, 44 insertions(+) create mode 100644 Doc

[PATCH 1/9] dt-bindings: power: Add ZynqMP power domain bindings

2018-11-16 Thread Jolly Shah
From: Rajan Vaja Add documentation to describe ZynqMP power domain bindings. Signed-off-by: Rajan Vaja Signed-off-by: Jolly Shah --- .../bindings/power/xlnx,zynqmp-genpd.txt | 34 +++ include/dt-bindings/power/xlnx-zynqmp-power.h | 39 ++ 2 f

[PATCH 6/9] dt-bindings: spi: zynqmp: Move SPI node under zynqmp firmware

2018-11-16 Thread Jolly Shah
From: Rajan Vaja SPI driver uses ZynqMP firmware interface and so it should be populated by firmware driver. Signed-off-by: Rajan Vaja Signed-off-by: Jolly Shah --- .../devicetree/bindings/spi/spi-zynqmp-qspi.txt| 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-)

[PATCH 9/9] dt-bindings: fpga: Add binding doc for the afi config driver

2018-11-16 Thread Jolly Shah
Add the binding document for the afi config driver. Signed-off-by: Shubhrajyoti Datta Signed-off-by: Michal Simek Signed-off-by: Jolly Shah --- .../devicetree/bindings/fpga/xlnx,afi-fpga.txt | 67 ++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/dev

[PATCH 3/9] dt-bindings: reset: Add bindings for ZynqMP reset driver

2018-11-16 Thread Jolly Shah
From: Nava kishore Manne Add documentation to describe Xilinx ZynqMP reset driver bindings. Signed-off-by: Nava kishore Manne Signed-off-by: Jolly Shah --- .../bindings/reset/xlnx,zynqmp-reset.txt | 148 + 1 file changed, 148 insertions(+) create mode 100644 Do

[PATCH 5/9] dt-bindings: pinctrl: Add ZynqMP pin controller bindings

2018-11-16 Thread Jolly Shah
From: Rajan Vaja Add documentation to describe Xilinx ZynqMP pin controller bindings. Signed-off-by: Rajan Vaja Signed-off-by: Jolly Shah --- .../bindings/pinctrl/xlnx,zynqmp-pinctrl.txt | 272 + 1 file changed, 272 insertions(+) create mode 100644 Documentation/de

[PATCH 2/9] dt-bindings: soc: Add ZynqMP PM bindings

2018-11-16 Thread Jolly Shah
From: Rajan Vaja Add documentation to describe Xilinx ZynqMP power management bindings. Signed-off-by: Rajan Vaja Signed-off-by: Jolly Shah --- .../bindings/power/reset/xlnx,zynqmp-power.txt | 25 ++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/d

Re: [PATCH] pinctrl: mediatek: Convert to using %pOFn instead of device_node.name

2018-11-16 Thread Sean Wang
On Fri, Nov 16, 2018 at 2:06 PM Rob Herring wrote: > > In preparation to remove the node name pointer from struct device_node, > convert printf users to use the %pOFn format specifier. > > Cc: Sean Wang > Cc: Linus Walleij > Cc: Matthias Brugger > Cc: linux-media...@lists.infradead.org > Cc: li

[PATCH 1/2] staging: emxx_udc: Split line and fix eol parenthesis

2018-11-16 Thread Cristian Sicilia
Fix some parenthesis opened at end of line. Signed-off-by: Cristian Sicilia --- drivers/staging/emxx_udc/emxx_udc.c | 73 ++--- 1 file changed, 36 insertions(+), 37 deletions(-) diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc

[PATCH 2/2] staging: emxx_udc: Fixing function naming

2018-11-16 Thread Cristian Sicilia
Fix function naming and parenthesis. Signed-off-by: Cristian Sicilia --- drivers/staging/emxx_udc/emxx_udc.c | 212 1 file changed, 70 insertions(+), 142 deletions(-) diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c ind

[PATCH 0/2] Split line, fix eol parenthesis and fix functions

2018-11-16 Thread Cristian Sicilia
Patch 1: therea are some trying to split the line, but not shure about the result, like 1) reg_data = _nbu2ss_readl((u32 *)IO_ADDRESS(USB_BASE_ADDRESS + i)); 2) regdata = _nbu2ss_readl(&preg->EP_REGS[ep->epnum -

Re: UBSAN: Undefined behaviour in mm/page_alloc.c

2018-11-16 Thread Dmitry Vyukov
On Tue, Nov 13, 2018 at 3:29 PM, Andrew Morton wrote: > On Tue, 13 Nov 2018 10:43:05 +0100 Michal Hocko wrote: > >> From: Michal Hocko >> Date: Fri, 9 Nov 2018 09:35:29 +0100 >> Subject: [PATCH] mm, page_alloc: check for max order in hot path >> >> Konstantin has noticed that kvmalloc might trig

Re: [PATCH v17 07/23] x86/mm: x86/sgx: Add new 'PF_SGX' page fault error code bit

2018-11-16 Thread Dave Hansen
On 11/15/18 5:01 PM, Jarkko Sakkinen wrote: > The SGX bit is set in the #PF error code if and only if the fault is > detected by the Enclave Page Cache Map (EPCM), a hardware-managed > table that enforces the paging permissions defined by the enclave, > e.g. to prevent the kernel from changing the

Re: [PATCH v17 06/23] x86/cpu/intel: Detect SGX support and update caps appropriately

2018-11-16 Thread Dave Hansen
On 11/15/18 5:01 PM, Jarkko Sakkinen wrote: > +static void detect_sgx(struct cpuinfo_x86 *c) > +{ > + unsigned long long fc; > + > + rdmsrl(MSR_IA32_FEATURE_CONTROL, fc); > + if (!(fc & FEATURE_CONTROL_LOCKED)) { > + pr_err_once("sgx: IA32_FEATURE_CONTROL MSR is not locked\n

Re: [PATCH v17 03/23] x86/cpufeatures: Add SGX sub-features (as Linux-defined bits)

2018-11-16 Thread Dave Hansen
On 11/15/18 5:01 PM, Jarkko Sakkinen wrote: > +#define X86_FEATURE_SGX1 ( 8*32+ 0) /* SGX1 leaf functions */ > +#define X86_FEATURE_SGX2 ( 8*32+ 1) /* SGX2 leaf functions */ Is there a reason these are not (all) tied to CONFIG_INTEL_SGX via: arch/x86/include/asm/disabled-f

Re: [PATCH bpf] bpf: allocate local storage buffers using GFP_ATOMIC

2018-11-16 Thread Y Song
On Wed, Nov 14, 2018 at 6:01 PM Roman Gushchin wrote: > > Naresh reported an issue with the non-atomic memory allocation of > cgroup local storage buffers: > > [ 73.047526] BUG: sleeping function called from invalid context at > /srv/oe/build/tmp-rpb-glibc/work-shared/intel-corei7-64/kernel-sour

Re: [PATCH v4] x86/fsgsbase/64: Fix the base write helper functions

2018-11-16 Thread Bae, Chang Seok
> On Nov 14, 2018, at 13:46, Bae, Chang Seok wrote: > > int copy_thread_tls(unsigned long clone_flags, unsigned long sp, > @@ -758,11 +720,45 @@ long do_arch_prctl_64(struct task_struct *task, int > option, unsigned long arg2) > > switch (option) { > case ARCH_SET_GS: { > -

[PATCH v5] x86/fsgsbase/64: Fix the base write helper functions

2018-11-16 Thread Chang S. Bae
The helper functions that purport to write the base should just write it only. It shouldn't have magic optimizations to change the index. Make the index explicitly changed from the caller, instead of including the code in the helpers. Subsequently, the task write helpers do not handle for the cur

[PATCH] staging: axis-fifo: Split line to stay in 80 characters.

2018-11-16 Thread Cristian Sicilia
The line is split up to stay in 80 characters- Signed-off-by: Cristian Sicilia --- drivers/staging/axis-fifo/axis-fifo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/axis-fifo/axis-fifo.c b/drivers/staging/axis-fifo/axis-fifo.c index c18bf31..805437f 100

Re: [PATCH v2 2/3] dt-bindings: clk: add documentation for the SiFive PRCI driver

2018-11-16 Thread Paul Walmsley
On Wed, 24 Oct 2018, Rob Herring wrote: On Sat, Oct 20, 2018 at 06:50:23AM -0700, Paul Walmsley wrote: Add DT binding documentation for the Linux driver for the SiFive PRCI clock & reset control IP block, as found on the SiFive FU540 chip. Cc: Michael Turquette Cc: Stephen Boyd Cc: Rob Herri

Re: [PATCH v2 1/2] dt-bindings: serial: add documentation for the SiFive UART driver

2018-11-16 Thread Paul Walmsley
On Wed, 24 Oct 2018, Rob Herring wrote: On Tue, Oct 23, 2018 at 10:05:40AM -0700, Paul Walmsley wrote: On 10/20/18 7:21 AM, Rob Herring wrote: On Fri, Oct 19, 2018 at 5:06 PM Paul Walmsley wrote: On 10/19/18 1:45 PM, Rob Herring wrote: On Fri, Oct 19, 2018 at 1:48 PM Paul Walmsley wrote:

Re: [PATCH v3 1/2] x86/fpu: track AVX-512 usage of tasks

2018-11-16 Thread Dave Hansen
On 11/15/18 4:21 PM, Li, Aubrey wrote: > "Core cycles where the core was running with power delivery for license > level 2 (introduced in Skylake Server microarchitecture). This includes > high current AVX 512-bit instructions." > > I translated license level 2 to frequency drop. BTW, the "high"

Re: [PATCH v1 2/5] perf cs-etm: Avoid stale branch samples when flush packet

2018-11-16 Thread Mathieu Poirier
On Sun, Nov 11, 2018 at 12:59:40PM +0800, Leo Yan wrote: > At the end of trace buffer handling, function cs_etm__flush() is invoked > to flush any remaining branch stack entries. As a side effect, it also > generates branch sample, because the 'etmq->packet' doesn't contains any > new coming packe

[PATCH 7/7] Staging: iio: adt7316: Use device tree data to assign irq_type

2018-11-16 Thread Shreeya Patel
ADT7316 driver no more uses platform data and hence use device tree data instead of platform data for assigning irq_type field. Switch case figures out the type of irq and if it's the default case then assign the default value to the irq_type i.e. irq_type = IRQF_TRIGGER_LOW Signed-off-by: Shreeya

[PATCH 6/7] Staging: iio: adt7316: Change the name from irq_flags to irq_type

2018-11-16 Thread Shreeya Patel
Most of the drivers in IIO uses irq_type as the name for storing the interrupt type and hence change the name from irq_flags to irq_type for maintaining the consistency. Signed-off-by: Shreeya Patel --- drivers/staging/iio/addac/adt7316.c | 8 1 file changed, 4 insertions(+), 4 deletion

Re: KMSAN: kernel-infoleak in kvm_arch_vcpu_ioctl

2018-11-16 Thread Liran Alon
> On 17 Nov 2018, at 0:09, syzbot > wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:006aa39cddee kmsan: don't instrument fixup_bad_iret() > git tree: > https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_google_kmsan.git_master&d=DwIBaQ&c=Ro

[PATCH 5/7] Staging: iio: adt7316: Switch irq_flags to a local variable

2018-11-16 Thread Shreeya Patel
There is no need to store irq_flags into the structure as it is always set to the same thing. Hence switch irq_flags to a local variable. Signed-off-by: Shreeya Patel --- drivers/staging/iio/addac/adt7316-i2c.c | 1 - drivers/staging/iio/addac/adt7316-spi.c | 1 - drivers/staging/iio/addac/adt73

Re: [PATCH v5 5/9] dt-bindings: spi: Adjust the bindings for the FSL QSPI driver

2018-11-16 Thread Rob Herring
On Tue, 13 Nov 2018 13:47:37 +, Schrempf Frieder wrote: > Adjust the documentation of the new SPI memory interface based > driver to reflect the new drivers settings. > > The "old" driver was using the "fsl,qspi-has-second-chip" property to > select one of two dual chip setups (two chips on on

Re: [PATCH v5 4/9] dt-bindings: spi: Move the bindings for the FSL QSPI driver

2018-11-16 Thread Rob Herring
On Tue, 13 Nov 2018 13:47:34 +, Schrempf Frieder wrote: > Move the documentation of the old SPI NOR driver to the place of the new > SPI memory interface based driver. > > Signed-off-by: Frieder Schrempf > --- > .../bindings/{mtd/fsl-quadspi.txt => spi/spi-fsl-qspi.txt} | 0 > 1 fi

Re: [PATCH v1 1/5] perf cs-etm: Correct packets swapping in cs_etm__flush()

2018-11-16 Thread Mathieu Poirier
On Sun, Nov 11, 2018 at 12:59:39PM +0800, Leo Yan wrote: > The structure cs_etm_queue uses 'prev_packet' to point to previous > packet, this can be used to combine with new coming packet to generate > samples. > > In function cs_etm__flush() it swaps packets only when the flag > 'etm->synth_opts.l

[PATCH 4/7] Staging: iio: adt7316: Use device tree data to set ldac_pin

2018-11-16 Thread Shreeya Patel
Make the driver use device tree instead of the platform data. Hence, use devm_gpiod_get_optional function to get the data from device tree for ldac-pin and accordingly make the needed changes in the driver. Signed-off-by: Shreeya Patel --- drivers/staging/iio/addac/adt7316.c | 14 ++

[PATCH 3/7] Staging: iio: adt7316: Add of_device_id table

2018-11-16 Thread Shreeya Patel
When the kernel starts up, it kicks off compiled-in drivers that match “compatible” entries it finds in the device tree. At a later stage (when /lib/modules is available), all kernel modules that match “compatible” entries in the device tree are loaded. Hence to be able to use device tree for ADT73

Re: [PATCH 1/7] node: Link memory nodes to their compute nodes

2018-11-16 Thread Dan Williams
On Thu, Nov 15, 2018 at 12:37 PM Matthew Wilcox wrote: > > On Thu, Nov 15, 2018 at 07:59:20AM -0700, Keith Busch wrote: > > On Thu, Nov 15, 2018 at 05:57:10AM -0800, Matthew Wilcox wrote: > > > On Wed, Nov 14, 2018 at 03:49:14PM -0700, Keith Busch wrote: > > > > Memory-only nodes will often have a

[PATCH] perf: tests: Disable breakpoint tests on ARM (32-bit)

2018-11-16 Thread Florian Fainelli
breakpoint tests on the ARM 32-bit kernel are broken in several ways. The breakpoint length requested does not necessarily match whether the function address has the Thumb bit (bit 0) set or not, and this does matter to the ARM kernel hw_breakpoint infrastructure. See [1] for background. [1]: htt

Re: [PATCH v5 4/4] dt-bindings: iio: adc: Add docs for ad7124

2018-11-16 Thread Rob Herring
On Tue, 13 Nov 2018 13:22:18 +0200, Stefan Popa wrote: > Add support for Analog Devices AD7124 4-channels and 8-channels ADC. > > Signed-off-by: Stefan Popa > --- > Changes in v2: > - Nothing changed. > Changes in v3: > - Removed the "adi,channels" property. > - Used the "reg" p

mmotm 2018-11-16-14-52 uploaded

2018-11-16 Thread akpm
The mm-of-the-moment snapshot 2018-11-16-14-52 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

Re: [PATCH v5 2/4] dt-bindings: iio: adc: Add common ADCs properties to a separate file

2018-11-16 Thread Rob Herring
On Tue, 13 Nov 2018 13:21:01 +0200, Stefan Popa wrote: > There are several ADC drivers that depend on the same device tree > bindings. Rather than continue to duplicate the properties, this patch > adds a common adc binding document that can be referenced. For beginning, > only two properties are d

Re: [PATCH v5 2/4] dt-bindings: iio: adc: Add common ADCs properties to a separate file

2018-11-16 Thread Rob Herring
On Fri, Nov 16, 2018 at 06:38:38PM +, Jonathan Cameron wrote: > On Tue, 13 Nov 2018 13:21:01 +0200 > Stefan Popa wrote: > > > There are several ADC drivers that depend on the same device tree > > bindings. Rather than continue to duplicate the properties, this patch > > adds a common adc bind

Re: Enable tracing only for one function and its children?

2018-11-16 Thread Keith Busch
On Fri, Nov 16, 2018 at 04:37:55PM -0600, Timur Tabi wrote: > Is there a way to enable ftrace tracing only for one specific function > and all the functions it calls? Then when the function returns, > disable tracing until the next time? > > When I pass the function name only to set_ftrace_filter

  1   2   3   4   5   >