Re: [PATCH RESEND] fs: drop unused fput_atomic definition

2019-04-11 Thread Johannes Thumshirn
Looks good, Reviewed-by: Johannes Thumshirn -- Johannes ThumshirnSUSE Labs Filesystems jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 21284 (AG Nürnb

Re: [PATCH RFC] clk: ux500: add range to usleep_range

2019-04-11 Thread Ulf Hansson
On Sun, 7 Apr 2019 at 05:13, Nicholas Mc Guire wrote: > > Providing a range for usleep_range() allows the hrtimer subsystem to > coalesce timers - the delay is runtime configurable so a factor 2 > is taken to provide the range. > > Signed-off-by: Nicholas Mc Guire > --- > > Problem located with a

Re: [PATCH -next] memory: tegra: Make terga20_mc_reset_ops static

2019-04-11 Thread Thierry Reding
On Wed, Apr 10, 2019 at 10:04:50PM +0800, Yue Haibing wrote: > From: YueHaibing > > Fix sparse warning: > > drivers/memory/tegra/tegra20.c:277:33: warning: > symbol 'terga20_mc_reset_ops' was not declared. Should it be static? > > Reported-by: Hulk Robot > Signed-off-by: YueHaibing > --- >

[PATCH] pinctrl: Add kernel config PINCTRL_MTK_V2

2019-04-11 Thread Light Hsieh
Since no single Mediatek chip use code for PINCTRL_MTK and code for PINCTRL_MTK_MOORE/PINCTRL_MTK_PARIS simultaneously, it is better to use different config to determine if related code will be built or not on building non-generic kernel. Add kernel config PINCTRL_MTK_V2 selected by either PINCTRL

[PATCH] ARM: vdso: use $(LD) instead of $(CC) to link VDSO

2019-04-11 Thread Masahiro Yamada
We use $(LD) to link vmlinux, modules, decompressors, etc. VDSO is the only exceptional case where $(CC) is used as the linker driver, but I do not know why we need to do so. VDSO uses a special linker script, and does not link standard libraries at all. I changed the Makefile to use $(LD) rather

[PATCH] arm64: vdso: use $(LD) instead of $(CC) to link VDSO

2019-04-11 Thread Masahiro Yamada
We use $(LD) to link vmlinux, modules, decompressors, etc. VDSO is the only exceptional case where $(CC) is used as the linker driver, but I do not know why we need to do so. VDSO uses a special linker script, and does not link standard libraries at all. I changed the Makefile to use $(LD) rather

[PATCH v4 4/6] ARM: davinci: omapl138-hawk: add a fixed regulator for ohci-da8xx

2019-04-11 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Instead of directly using the vbus GPIO we should model it as a fixed regulator. Add all necessary fix-ups for the regulator to be registered and configure the vbus GPIO as its enable pin. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/board-omapl138-haw

[PATCH v4 2/6] usb: ohci-da8xx: let the regulator framework keep track of use count

2019-04-11 Thread Bartosz Golaszewski
From: Bartosz Golaszewski There's no reason to have a separate variable to keep track of the regulator state. The regulator core already does that. Remove reg_enabled from struct da8xx_ohci_hcd. Signed-off-by: Bartosz Golaszewski Acked-by: Alan Stern --- drivers/usb/host/ohci-da8xx.c | 8 ++--

Re: [PATCH] mtd: rawnand: Add Macronix NAND read retry and randomizer support

2019-04-11 Thread Boris Brezillon
On Thu, 11 Apr 2019 17:24:09 +0800 masonccy...@mxic.com.tw wrote: > Hi Boris, > > > > > > > > Subject > > > > > > > > > > > > Re: [PATCH] mtd: rawnand: Add Macronix NAND read retry and > > > randomizer > > > > > support > > > > > > > > > > > > On Tue, 9 Apr 2019 17:35:39 +0800 > > >

Re: [PATCH 0/2] tools: Fixes for pcitest

2019-04-11 Thread Lorenzo Pieralisi
On Thu, Apr 04, 2019 at 04:36:07PM +0530, Kishon Vijay Abraham I wrote: > Hi Lorenzo, > > This series includes a couple of patches, one which fixes > inadvertent removal of pcitest.sh from kernel repo when > doing a "clean" and other lets the user use 'h' option to > display the list of options su

Re: [PATCH v2] modpost: make KBUILD_MODPOST_WARN also configurable for

2019-04-11 Thread Wiebe, Wladislav (Nokia - DE/Ulm)
seems subject is incomplete in v2, v3 posted: https://lore.kernel.org/patchwork/patch/1060505/ Thanks! - Wladislav On 10.04.2019 11:23, Wiebe, Wladislav (Nokia - DE/Ulm) wrote: > Commit ea837f1c0503 ("kbuild: make modpost processing configurable") > was intended to give KBUILD_MODPOST_WARN flexi

Re: [PATCH linux] objtool: fix pkg-config query in case of cross-compilation

2019-04-11 Thread Nicolas Dichtel
Le 11/04/2019 à 10:52, Rolf Eike Beer a écrit : > Am Donnerstag, 11. April 2019, 10:39:40 CEST schrieb Nicolas Dichtel: >> In case of cross-compilation, there may be two pkg-config tools, one for >> the host and one for the target. Enable to override the default name. >> >> Fixes: 056d28d135bc ("ob

[PATCH v3] modpost: make KBUILD_MODPOST_WARN also configurable for external modules

2019-04-11 Thread Wiebe, Wladislav (Nokia - DE/Ulm)
Commit ea837f1c0503 ("kbuild: make modpost processing configurable") was intended to give KBUILD_MODPOST_WARN flexibility to be configurable. Right now KBUILD_MODPOST_WARN gets just ignored when KBUILD_EXTMOD is set which happens per default when building modules out of the tree. This change gives

[PATCH] KVM: fix spectrev1 gadgets

2019-04-11 Thread Paolo Bonzini
These were found with smatch, and then generalized when applicable. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/lapic.c | 4 +++- include/linux/kvm_host.h | 10 ++ virt/kvm/irqchip.c | 5 +++-- virt/kvm/kvm_main.c | 6 -- 4 files changed, 16 insertions(+), 9 delet

[GIT PULL] global spelling corrections for v5.1.0-rc5

2019-04-11 Thread Kenny Van de Maele
_I hope I did this right... Apologies if I made a procedure mistake._ The following changes since commit 582549e3fbe137eb6ce9be591aca25ca36b4: Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma (2019-04-10 09:39:04 -1000) are available in the Git repository at

Re: [RFC][PATCH 13/16] sched: Add core wide task selection and scheduling.

2019-04-11 Thread Peter Zijlstra
On Thu, Apr 11, 2019 at 11:05:41AM +0800, Aaron Lu wrote: > On Wed, Apr 10, 2019 at 04:44:18PM +0200, Peter Zijlstra wrote: > > When core_cookie==0 we shouldn't schedule the other siblings at all. > > Not even with another untagged task? > > I was thinking to leave host side tasks untagged, like

Re: [PATCH v3 2/9] kbuild: Support for Symbols.list creation

2019-04-11 Thread Artem Savkov
On Wed, Apr 10, 2019 at 11:50:51AM -0400, Joe Lawrence wrote: > -clean: archclean vmlinuxclean > +klpclean: > + $(Q) rm -f $(objtree)/Symbols.list nit: $(SLIST) can be used here. > +clean: archclean vmlinuxclean klpclean > > # mrproper - Delete all generated files, including .config > # >

Re: [RFC patch 40/41] stacktrace: Remove obsolete functions

2019-04-11 Thread Peter Zijlstra
On Wed, Apr 10, 2019 at 10:33:20PM -0500, Josh Poimboeuf wrote: > On Wed, Apr 10, 2019 at 12:28:34PM +0200, Thomas Gleixner wrote: > > +struct stack_trace { > > + unsigned int nr_entries, max_entries; > > + unsigned long *entries; > > + int skip; /* input argument: How many entries to

Re: [PATCH] mm/memory_hotplug: Drop memory device reference after find_memory_block()

2019-04-11 Thread David Hildenbrand
On 11.04.19 10:41, Michal Hocko wrote: > On Wed 10-04-19 12:14:55, David Hildenbrand wrote: >> While current node handling is probably terribly broken for memory block >> devices that span several nodes (only possible when added during boot, >> and something like that should be blocked completely),

Re: [v3 PATCH] PCI: mediatek: get optional clock by devm_clk_get_optional()

2019-04-11 Thread Lorenzo Pieralisi
On Wed, Apr 10, 2019 at 02:54:16PM +0800, Chunfeng Yun wrote: > Use devm_clk_get_optional() to get optional clock > > Cc: Ryder Lee > Cc: Honghui Zhang > Signed-off-by: Chunfeng Yun > Acked-by: Ryder Lee > Acked-by: Honghui Zhang > --- > v3: add Acked-by Ryder and Honghui > --- > drivers/pci

Re: [PATCH V2 2/2] perf/x86/intel: Add Tremont core PMU support

2019-04-11 Thread Peter Zijlstra
On Wed, Apr 10, 2019 at 11:57:09AM -0700, kan.li...@linux.intel.com wrote: > +static struct event_constraint * > +tnt_get_event_constraints(struct cpu_hw_events *cpuc, int idx, > + struct perf_event *event) That 'tnt' still cracks me up, I keep seeing explosions. > +{ > +

RE: [PATCH v2] usb: typec: tcpm: collision avoidance

2019-04-11 Thread Adam Thomson
On 10 April 2019 17:39, Hans de Goede wrote: > On 10-04-19 18:14, Adam Thomson wrote: > > On 10 April 2019 16:45, Hans de Goede wrote: > > > >> Hi Kyle, > >> > >> On 10-04-19 14:49, Kyle Tso wrote: > >>> On Wed, Apr 10, 2019 at 6:32 PM Adam Thomson > >>> wrote: > > On 09 April 2019 15:4

RE: [PATCH] KVM: x86: optimize check for valid PAT value

2019-04-11 Thread David Laight
From: Paolo Bonzini > Sent: 10 April 2019 18:09 > On 10/04/19 16:57, Sean Christopherson wrote: > > On Wed, Apr 10, 2019 at 12:55:53PM +, David Laight wrote: > >> From: Paolo Bonzini > >>> Sent: 10 April 2019 10:55 > >>> > >>> This check will soon be done on every nested vmentry and vmexit, > >

Re: [PATCH 1/2] mmc: let the dma map ops handle bouncing

2019-04-11 Thread Ulf Hansson
Hi Christoph, On Thu, 11 Apr 2019 at 09:10, Christoph Hellwig wrote: > > Just like we do for all other block drivers. Especially as the limit > imposed at the moment might be way to pessimistic for iommus. I would appreciate some information in the changelog, as it's quite unclear of what this

Re: [PATCH V5 08/12] perf/x86/intel: Add Icelake support

2019-04-11 Thread Peter Zijlstra
On Wed, Apr 10, 2019 at 09:47:20PM +0200, Peter Zijlstra wrote: > Sure, those are actually forced 0 with the existing thing. > > I'll go fold smething like back in. Thanks! > > @@ -3472,7 +3475,7 @@ icl_get_event_constraints(struct cpu_hw_events *cpuc, > > int idx, > > * Force instruction:pp

[PATCH v4 2/2] tty: serial: add driver for the SiFive UART

2019-04-11 Thread Paul Walmsley
Add a serial driver for the SiFive UART, found on SiFive FU540 devices (among others). The underlying serial IP block is relatively basic, and currently does not support serial break detection. Further information on the IP block can be found in the documentation and Chisel sources: https://

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

2019-04-11 Thread Paul Walmsley
Add DT binding documentation for the Linux driver for the SiFive asynchronous serial IP block. This revision incorporates changes based on feedback from Rob Herring . Signed-off-by: Paul Walmsley Signed-off-by: Paul Walmsley Cc: linux-ser...@vger.kernel.org Cc: devicet...@vger.kernel.org Cc: li

[PATCH v4 0/2] tty: serial: add DT bindings and serial driver for the SiFive FU540 UART

2019-04-11 Thread Paul Walmsley
This series adds a serial driver, with console support, for the UART IP block present on the SiFive FU540 SoC. The programming model is straightforward, but unique. Boot-tested on a SiFive FU540 HiFive-U board, using BBL and the open-source FSBL (with appropriate patches to the DT data). This fo

[PATCH v6] mmc: sdhci-omap: Don't finish_mrq() on a command error during tuning

2019-04-11 Thread Faiz Abbas
commit 5b0d62108b46 ("mmc: sdhci-omap: Add platform specific reset callback") skips data resets during tuning operation. Because of this, a data error or data finish interrupt might still arrive after a command error has been handled and the mrq ended. This ends up with a "mmc0: Got data interrupt

Re: [PATCH v3 0/2] tty: serial: add DT bindings and serial driver for the SiFive FU540 UART

2019-04-11 Thread Paul Walmsley
On Wed, 6 Mar 2019, Andreas Schwab wrote: > Trying to log in on the serial console causes the system to freeze. The > last message is: > > [ 115.597858] sifive-serial 1001.serial: BRKINT/PARMRK flag not supported Have not seen that problem. If you're still seeing this, could you follow up

Re: [PATCH 12/22] watchdog: zx2967_wdt: Convert to use device managed functions and other improvements

2019-04-11 Thread Shawn Guo
On Wed, Apr 10, 2019 at 09:27:53AM -0700, Guenter Roeck wrote: > Use device managed functions to simplify error handling, reduce > source code size, improve readability, and reduce the likelyhood of bugs. > Other improvements as listed below. > > The conversion was done automatically with coccinel

Re: [PATCH linux] objtool: fix pkg-config query in case of cross-compilation

2019-04-11 Thread Rolf Eike Beer
Am Donnerstag, 11. April 2019, 10:39:40 CEST schrieb Nicolas Dichtel: > In case of cross-compilation, there may be two pkg-config tools, one for > the host and one for the target. Enable to override the default name. > > Fixes: 056d28d135bc ("objtool: Query pkg-config for libelf location") > Signe

Re: [PATCH 2/2] s390: boot, purgatory: pass $(CLANG_FLAGS) where needed

2019-04-11 Thread Arnd Bergmann
On Thu, Apr 11, 2019 at 12:14 AM 'Nick Desaulniers' via Clang Built Linux wrote: > On Wed, Apr 10, 2019 at 1:13 PM Arnd Bergmann wrote: > > > > The purgatory and boot Makefiles do not inherit the original cflags, > > so clang falls back to the default target architecture when building it, > > typ

Re: [PATCH 1/3] Kconfig: Create "kernel hardening" config area

2019-04-11 Thread Masahiro Yamada
On Thu, Apr 11, 2019 at 1:16 AM Kees Cook wrote: > diff --git a/scripts/gcc-plugins/Kconfig b/scripts/gcc-plugins/Kconfig > index 74271dba4f94..01874ef0f883 100644 > --- a/scripts/gcc-plugins/Kconfig > +++ b/scripts/gcc-plugins/Kconfig > @@ -13,10 +13,11 @@ config HAVE_GCC_PLUGINS > An a

Re: [PATCH RFC 8/8] ARM: dts: exynos: Add ASV tables for exynos5422/5800

2019-04-11 Thread Willy Wolff
Hi Anand, I'm using this frequencies on the board since 3 years, without any stability issues. The kind of worklaod used is intensive CPU-bound benchmarks running for 20 mins at least in order to stress the system, I'm studying schedulability under high thermal constraints. So, I would say these

Re: [PATCH 10/22] watchdog: imx_sc_wdt: Use 'dev' instead of dereferencing it repeatedly

2019-04-11 Thread Shawn Guo
On Wed, Apr 10, 2019 at 09:27:51AM -0700, Guenter Roeck wrote: > Introduce local variable 'struct device *dev' and use it instead of > dereferencing it repeatedly. > > The conversion was done automatically with coccinelle using the > following semantic patches. The semantic patches and the scripts

[PATCH linux] objtool: fix pkg-config query in case of cross-compilation

2019-04-11 Thread Nicolas Dichtel
In case of cross-compilation, there may be two pkg-config tools, one for the host and one for the target. Enable to override the default name. Fixes: 056d28d135bc ("objtool: Query pkg-config for libelf location") Signed-off-by: Nicolas Dichtel --- Makefile | 3 ++- tools/objtool/Ma

[PATCH 0/2] Add support of Temperature sensor Clock for G12 SoC

2019-04-11 Thread Guillaume La Roque
This patch series add support of Clock for temperature sensor on Amlogic G12a SoC. Guillaume Guillaume La Roque (2): dt-bindings: clk: g12a-clkc: add Temperature Sensor clock ID clk: meson-g12a: Add Temperature Sensor clock drivers/clk/meson/g12a.c | 31

[PATCH 2/2] clk: meson-g12a: Add Temperature Sensor clock

2019-04-11 Thread Guillaume La Roque
Add TS clock used by two temperature sensor Signed-off-by: Guillaume La Roque --- drivers/clk/meson/g12a.c | 31 +++ drivers/clk/meson/g12a.h | 3 ++- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/drivers/clk/meson/g12a.c b/drivers/clk/meson/g12a.c i

[PATCH 1/2] dt-bindings: clk: g12a-clkc: add Temperature Sensor clock ID

2019-04-11 Thread Guillaume La Roque
Add clock id used by temperature sensor for G12A Socs Signed-off-by: Guillaume La Roque --- include/dt-bindings/clock/g12a-clkc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/clock/g12a-clkc.h b/include/dt-bindings/clock/g12a-clkc.h index 30303728fe09..85cfcab10507 10

Re: [PATCH 0/1] mm: Remove the SLAB allocator

2019-04-11 Thread Mel Gorman
On Thu, Apr 11, 2019 at 09:55:56AM +0200, Michal Hocko wrote: > > > FWIW, our enterprise kernel use it (latest is 4.12 based), and openSUSE > > > kernels as well (with openSUSE Tumbleweed that includes latest > > > kernel.org stables). AFAIK we don't enable SLAB_DEBUG even in general > > > debug ke

[PATCH 3/6] dt-bindings: riscv: convert cpu binding to json-schema

2019-04-11 Thread Paul Walmsley
At Rob's request, we're starting to migrate our DT binding documentation to json-schema YAML format. Start by converting our cpu binding documentation. While doing so, document more properties and nodes. This includes adding binding documentation support for the E51 and U54 CPU cores ("harts") t

[PATCH 5/6] riscv: dts: add initial board data for the SiFive HiFive Unleashed

2019-04-11 Thread Paul Walmsley
Add initial board data for the SiFive HiFive Unleashed A00. Currently the data populated in this DT file describes the board DRAM configuration and the external clock sources that supply the PRCI. This second version adds onboard SPI device data, fixes the board's memory size, and adds changes ba

[PATCH 1/6] arch: riscv: add support for building DTB files from DT source data

2019-04-11 Thread Paul Walmsley
Similar to ARM64, add support for building DTB files from DT source data for RISC-V boards. This patch starts with the infrastructure needed for SiFive boards. Boards from other vendors would add support here in a similar form. Signed-off-by: Paul Walmsley Signed-off-by: Paul Walmsley Cc: Palme

[PATCH 4/6] riscv: dts: add initial support for the SiFive FU540-C000 SoC

2019-04-11 Thread Paul Walmsley
Add initial support for the SiFive FU540-C000 SoC. This is a 28nm SoC based around the SiFive U54-MC core complex and a TileLink interconnect. This file is expected to grow as more device drivers are added to the kernel. Signed-off-by: Paul Walmsley Signed-off-by: Paul Walmsley Cc: Rob Herring

Re: [PATCH v3 1/5] soundwire: intel: fix inversion in devm_kcalloc parameters

2019-04-11 Thread Takashi Iwai
On Thu, 11 Apr 2019 05:16:57 +0200, Pierre-Louis Bossart wrote: > > the number of elements and size are inverted, fix. > > This probably only worked because the number of properties is > hard-coded to 1. Well, both are mathematically equivalent :) Takashi > > Fixes: 71bb8a1b059e ('soundwire:

[PATCH 6/6] riscv: defconfig: enable ARCH_SIFIVE

2019-04-11 Thread Paul Walmsley
Enable CONFIG_ARCH_SIFIVE in the RISC-V defconfig so DTB files for SiFive boards are generated by default. Signed-off-by: Paul Walmsley Signed-off-by: Paul Walmsley Cc: Palmer Dabbelt Cc: Albert Ou Cc: linux-ri...@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- arch/riscv/configs/def

Re: [PATCH v4] x86/boot: Use efi_setup_data for searching RSDP on kexec-ed kernel

2019-04-11 Thread Baoquan He
On 04/11/19 at 08:16am, Junichi Nomura wrote: > On 4/11/19 5:09 PM, Borislav Petkov wrote: > > On Wed, Apr 10, 2019 at 11:34:51PM +, Junichi Nomura wrote: > >> But efi_get_rsdp_addr() needs to check whether the kernel was > >> kexec booted to avoid accessing invalid EFI table address. > >> efi_

Re: [PATCH v3 0/5] soundwire: code cleanup

2019-04-11 Thread Takashi Iwai
On Thu, 11 Apr 2019 05:16:56 +0200, Pierre-Louis Bossart wrote: > > SoundWire support will be provided in Linux with the Sound Open > Firmware (SOF) on Intel platforms. Before we start adding the missing > pieces, there are a number of warnings and style issues reported by > checkpatch, cppcheck a

[PATCH V5] ASoC: fsl_esai: Fix missing break in switch statement

2019-04-11 Thread S.j. Wang
case ESAI_HCKT_EXTAL and case ESAI_HCKR_EXTAL should be independent of each other, so replace fall-through with break. Fixes: 43d24e76b698 ("ASoC: fsl_esai: Add ESAI CPU DAI driver") Signed-off-by: Shengjiu Wang Acked-by: Nicolin Chen Cc: --- Changes in v5 - remove new line after Fixes Changes

[PATCH 2/6] dt-bindings: riscv: sifive: add YAML documentation for the SiFive FU540

2019-04-11 Thread Paul Walmsley
Add YAML DT binding documentation for the SiFive FU540 SoC. This SoC is documented at: https://static.dev.sifive.com/FU540-C000-v1.0.pdf Passes dt-doc-validate, as of yaml-bindings commit 4c79d42e9216. Signed-off-by: Paul Walmsley Signed-off-by: Paul Walmsley Cc: Rob Herring Cc: Mark Rut

[PATCH v2 0/6] arch: riscv: add board and SoC DT file support

2019-04-11 Thread Paul Walmsley
Add support for building flattened DT files from DT source files under arch/riscv/boot/dts. Follow existing kernel precedent from other SoC architectures. Start our board support by adding initial support for the SiFive FU540 SoC and the first development board that uses it, the SiFive HiFive Unl

Re: [PATCH] mm/memory_hotplug: Drop memory device reference after find_memory_block()

2019-04-11 Thread Michal Hocko
On Wed 10-04-19 12:14:55, David Hildenbrand wrote: > While current node handling is probably terribly broken for memory block > devices that span several nodes (only possible when added during boot, > and something like that should be blocked completely), properly put the > device reference we obta

[PATCH v5] arm64: dts: ls1088a: add one more thermal zone node

2019-04-11 Thread Yuantian Tang
Ls1088a has 2 thermal sensors, core cluster and SoC platform. Core cluster sensor is used to monitor the temperature of core and SoC platform is for platform. The current dts only support the first sensor. This patch adds the second sensor node to dts to enable it. Signed-off-by: Yuantian Tang --

Re: [PATCH-tip v3 00/14] locking/rwsem: Rwsem rearchitecture part 2

2019-04-11 Thread Peter Zijlstra
After applying: 1,2,5,3 Do we want to do something like the below? There is absolutely no reason anymore we need spread the implementation over 3 files: rwsem.h rwsem.c rwsem-xadd.c. And I went insane chasing things around. Note the below also includes a number of cleanups, there were still

Re: [PATCH v3 1/3] module: Prepare for addition of new ro_after_init sections

2019-04-11 Thread Miroslav Benes
On Wed, 10 Apr 2019, Joel Fernandes (Google) wrote: > For the purposes of hardening modules by adding sections to > ro_after_init sections, prepare for addition of new ro_after_init > entries which we do in future patches. Create a table to which new > entries could be added later. This makes it l

[PATCH v3 3/3] clk: sifive: add a driver for the SiFive FU540 PRCI IP block

2019-04-11 Thread Paul Walmsley
Add driver code for the SiFive FU540 PRCI IP block. This IP block handles reset and clock control for the SiFive FU540 device and implements SoC-level clock tree controls and dividers. Based on code written by Wesley Terpstra : https://github.com/riscv/riscv-linux/commit/999529edf517ed75b56659d45

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

2019-04-11 Thread Paul Walmsley
Add DT binding documentation for the Linux driver for the SiFive PRCI clock & reset control IP block, as found on the SiFive FU540 chip. This version includes changes requested by Stephen Boyd and Rob Herring , and fixes some errors in the initial version. Signed-off-by: Paul Walmsley Signed-of

[PATCH v3 1/3] clk: analogbits: add Wide-Range PLL library

2019-04-11 Thread Paul Walmsley
Add common library code for the Analog Bits Wide-Range PLL (WRPLL) IP block, as implemented in TSMC CLN28HPC. There is no bus interface or register target associated with this PLL. This library is intended to be used by drivers for IP blocks that expose registers connected to the PLL configuration

Re: [PATCH] usb/hcd: Send a uevent signaling that the host controller has died

2019-04-11 Thread Oliver Neukum
On Mi, 2019-04-10 at 14:35 -0600, Raul E Rangel wrote: > This change will send a CHANGE event to udev with the DEAD environment > variable set when the HC dies. I chose this instead of any of the other > udev events because it's representing a state change in the host > controller. The only other e

Re: [PATCH 0/1] mm: Remove the SLAB allocator

2019-04-11 Thread Pekka Enberg
Hi, On 4/11/19 10:55 AM, Michal Hocko wrote: Please please have it more rigorous then what happened when SLUB was forced to become a default This is the hard part. Even if you are able to show that SLUB is as fast as SLAB for all the benchmarks you run, there's bound to be that one workload

[PATCH v3 0/3] clk: add driver for the SiFive FU540 PRCI and PLLs it controls

2019-04-11 Thread Paul Walmsley
clk: add driver for the SiFive FU540 PRCI and PLLs it controls Add a driver for the SiFive FU540 PRCI IP block, which handles clock and some device reset control for the SiFive FU540 chip. Also add a driver- independent library for the Analog Bits Wide-Range PLL (WRPLL), used by the PRCI driver t

Re: Oase - A Fair Labour compliant OS, with integrated netcurrency.

2019-04-11 Thread Ywe Cærlyn
Unix is still the backbone of the internet. And Irix took it to the desktop in its time, a bit too far away from the original maybe, and did not continue, while Unix did, and is now as BSD, in Mac Systems, and on the desktop many places. We suggest full available source support, and integratin

Re: [PATCH 01/11] platform/x86: asus-wmi: Fix hwmon device cleanup

2019-04-11 Thread Daniel Drake
On Thu, Apr 11, 2019 at 4:21 AM Yurii Pavlovskyi wrote: > > The asus-wmi driver does not clean up the hwmon device on exit or error. > To reproduce the bug, repeat rmmod, insmod to verify that device number > /sys/devices/platform/asus-nb-wmi/hwmon/hwmon?? grows every time. Add > pointer to the de

Re: [PATCH v3 3/3] module: Make __tracepoints_ptrs as read-only

2019-04-11 Thread Joel Fernandes
On Wed, Apr 10, 2019 at 08:44:01PM -0400, Steven Rostedt wrote: > On Wed, 10 Apr 2019 16:29:02 -0400 > Joel Fernandes wrote: > > > The srcu structure pointer array is modified at module load time because the > > array is fixed up by the module loader at load-time with the final locations > > of t

Re: [PATCH] slab: fix an infinite loop in leaks_show()

2019-04-11 Thread Vlastimil Babka
On 4/11/19 5:26 AM, Qian Cai wrote: > "cat /proc/slab_allocators" could hang forever on SMP machines with > kmemleak or object debugging enabled due to other CPUs running do_drain() > will keep making kmemleak_object or debug_objects_cache dirty and unable > to escape the first loop in leaks_show()

Re: [PATCH v11 1/4] dmaengine: 8250_mtk_dma: add MediaTek uart DMA support

2019-04-11 Thread Long Cheng
On Sun, 2019-03-10 at 17:31 -0700, Sean Wang wrote: > Hi, Long > > List some comments as the below and this week I will find a board to > test and then improve the driver. > > Sean > > On Wed, Mar 6, 2019 at 5:45 PM Long Cheng wrote: > > > > In DMA engine framework, add 8250 uart dma t

Re: [PATCH] Staging: rtl8723bs: Remove typedef in struct sdio_data

2019-04-11 Thread Dan Carpenter
On Wed, Apr 10, 2019 at 02:49:09PM -0500, Madhumthia Prabakaran wrote: > On Wed, Apr 10, 2019 at 09:49:54AM +0300, Dan Carpenter wrote: > > On Tue, Apr 09, 2019 at 11:16:17AM -0500, Madhumitha Prabakaran wrote: > > > diff --git a/drivers/staging/rtl8723bs/include/drv_types.h > > > b/drivers/stagin

Re: [PATCH-tip v3 02/14] locking/rwsem: Make owner available even if !CONFIG_RWSEM_SPIN_ON_OWNER

2019-04-11 Thread Peter Zijlstra
On Wed, Apr 10, 2019 at 02:42:19PM -0400, Waiman Long wrote: > The owner field in the rw_semaphore structure is used primarily for > optimistic spinning. However, identifying the rwsem owner can also be > helpful in debugging as well as tracing locking related issues when > analyzing crash dump. Th

Re: [PATCH v3 1/2] cpufreq: Add sunxi nvmem based CPU scaling driver

2019-04-11 Thread Maxime Ripard
Hi, On Wed, Apr 10, 2019 at 01:41:38PM -0400, Yangtao Li wrote: > For some SoCs, the CPU frequency subset and voltage value of each OPP > varies based on the silicon variant in use. The sunxi-cpufreq-nvmem > driver reads the efuse value from the SoC to provide the OPP framework > with required inf

Re: [PATCH 3/3] kbuild: Implement Clang's stack initialization

2019-04-11 Thread Masahiro Yamada
On Thu, Apr 11, 2019 at 1:16 AM Kees Cook wrote: > > CONFIG_INIT_STACK_ALL turns on stack initialization based on > -ftrivial-auto-var-init in Clang builds and on > -fplugin-arg-structleak_plugin-byref-all in GCC builds. Is CONFIG_INIT_STACK_ALL wired up to GCC plugin in any way? I could not unde

[PATCH 2/3] riscv: Add support for perf registers sampling

2019-04-11 Thread Mao Han
This patch implements the perf registers sampling and validation API for riscv arch. The valid registers and their register ID are defined in perf_regs.h. Perf tool can backtrace in userspace with unwind library and the registers/user stack dump support. Signed-off-by: Mao Han CC: Palmer Dabbelt

[PATCH 1/3] riscv: Add perf callchain support

2019-04-11 Thread Mao Han
This patch add support for perf callchain sampling on riscv platform. The return address of leaf function is retrieved from pt_regs as it is not saved in the outmost frame. Signed-off-by: Mao Han CC: Palmer Dabbelt --- arch/riscv/kernel/Makefile | 3 +- arch/riscv/kernel/perf_callcha

RE: [PATCH v4] arm64: dts: ls1088a: add one more thermal zone node

2019-04-11 Thread Andy Tang
Hi Daniel, > -Original Message- > From: Daniel Lezcano > Sent: 2019年4月4日 10:35 > To: Andy Tang ; shawn...@kernel.org > Cc: Leo Li ; robh...@kernel.org; mark.rutl...@arm.com; > linux-arm-ker...@lists.infradead.org; devicet...@vger.kernel.org; > linux-kernel@vger.kernel.org; linux...@vger.

[PATCH 3/3] riscv: Add support for libdw

2019-04-11 Thread Mao Han
This patch add support for DWARF register mappings and libdw registers initialization, which is used by perf callchain analyzing when --call-graph=dwarf is given. Signed-off-by: Mao Han CC: Palmer Dabbelt --- tools/arch/riscv/include/uapi/asm/perf_regs.h | 42 tools/perf/Makefile.

[PATCH 0/3] riscv: Add perf callchain support

2019-04-11 Thread Mao Han
Hi, This patch set add perf callchain(FP/DWARF) support for RISC-V. It comes from the csky version callchain support with some slight modifications. The patchset base on Linux 5.1-rc4: 15ade5d2e7775667cf191cf2f94327a4889f8b9d CC: Palmer Dabbelt CC: Guo Ren Mao Han (3): riscv: Add perf callch

Re: [PATCH 0/3] Kconfig: Refactor memory initialization hardening

2019-04-11 Thread Masahiro Yamada
On Thu, Apr 11, 2019 at 1:16 AM Kees Cook wrote: > > This is a proposed alternative for the memory initialization series, > which refactoring the existing gcc plugins into a separate Kconfig > file and collects all the related options together with some more > language to describe their difference

Re: [PATCH 0/1] mm: Remove the SLAB allocator

2019-04-11 Thread Michal Hocko
On Wed 10-04-19 18:16:18, Tobin C. Harding wrote: > On Wed, Apr 10, 2019 at 10:02:36AM +0200, Vlastimil Babka wrote: > > On 4/10/19 4:47 AM, Tobin C. Harding wrote: > > > Recently a 2 year old bug was found in the SLAB allocator that crashes > > > the kernel. This seems to imply that not that many

Re: [PATCH v2] Input: elantech: Enable SMBus on new (2018+) systems

2019-04-11 Thread Kai-Heng Feng
at 16:33, Benjamin Tissoires wrote: On Mon, Jan 21, 2019 at 8:03 AM Kai-Heng Feng wrote: There are some new HP laptops with Elantech touchpad don't support multitouch. Currently we use ETP_NEW_IC_SMBUS_HOST_NOTIFY() to check if SMBus is supported, but in addition to firmware version, the b

[PATCH v3 3/4] ARM: mvebu: drop unnecessary label

2019-04-11 Thread Stefan Agner
The label mvebu_boot_wa_start is not necessary and causes a build issue when building with LLVM's integrated assembler: AS arch/arm/mach-mvebu/pmsu_ll.o arch/arm/mach-mvebu/pmsu_ll.S:59:1: error: invalid symbol redefinition mvebu_boot_wa_start: ^ Drop the label. Signed-off-by: Stef

[PATCH v3 2/4] ARM: OMAP2: drop explicit assembler architecture

2019-04-11 Thread Stefan Agner
OMAP2 depends on ARCH_MULTI_V6, which makes sure that the kernel is compiled with -march=armv6. The compiler frontend will pass the architecture to the assembler. There is no explicit architecture specification necessary. Signed-off-by: Stefan Agner --- Changes since v2: - New patch arch/arm/ma

[PATCH v3 1/4] ARM: use arch_extension directive instead of arch argument

2019-04-11 Thread Stefan Agner
The LLVM Target parser currently does not allow to specify the security extension as part of -march (see also LLVM Bug 40186 [0]). When trying to use Clang with LLVM's integrated assembler, this leads to build errors such as this: clang-8: error: the clang compiler does not support '-Wa,-march=ar

[PATCH v4 2/3] csky: Add support for perf registers sampling

2019-04-11 Thread Mao Han
This patch implements the perf registers sampling and validation API for csky arch. The valid registers and their register ID are defined in perf_regs.h. Perf tool can backtrace in userspace with unwind library and the registers/user stack dump support. CC: Guo Ren Signed-off-by: Mao Han --- a

[PATCH v3 4/4] ARM: mvebu: prefix coprocessor operand with p

2019-04-11 Thread Stefan Agner
In every other instance where mrc is used the coprocessor operand is prefix with p (e.g. p15). Use the p prefix in this case too. This fixes a build issue when using LLVM's integrated assembler: arch/arm/mach-mvebu/coherency_ll.S:69:6: error: invalid operand for instruction mrc 15, 0, r3, cr0

[PATCH v4 0/3] csky: perf callchain dwarf support

2019-04-11 Thread Mao Han
This patch set add perf DWARF unwinding support for C-SKY. Including user registers/stack dump API, and libdw support. CC: Peter Zijlstra CC: Ingo Molnar CC: Arnaldo Carvalho de Melo CC: Alexander Shishkin CC: Jiri Olsa CC: Namhyung Kim CC: Guo Ren Changes since v3: - update with patch f

[PATCH v4 3/3] csky: Add support for libdw

2019-04-11 Thread Mao Han
This patch add support for DWARF register mappings and libdw registers initialization, which is used by perf callchain analyzing when --call-graph=dwarf is given. CC: Peter Zijlstra CC: Ingo Molnar CC: Arnaldo Carvalho de Melo CC: Alexander Shishkin CC: Jiri Olsa CC: Namhyung Kim Signed-off

[PATCH v4 1/3] perf evsel: Use hweight64() instead of hweight_long(attr.sample_regs_user)

2019-04-11 Thread Mao Han
On 32-bits platform with more than 32 registers, the 64 bits mask is truncate to the lower 32 bits and the return value of hweight_long will always smaller than 32. When kernel outputs more than 32 registers, but the user perf program only counts 32, there will be a data mismatch result to overflow

Re: [PATCH v2 2/2] dt-bindings: cpufreq: Document operating-points-v2-sunxi-cpu

2019-04-11 Thread Maxime Ripard
On Thu, Apr 11, 2019 at 01:49:39AM +0800, Frank Lee wrote: > On Wed, Apr 10, 2019 at 10:57 PM Maxime Ripard > wrote: > > > > On Tue, Apr 09, 2019 at 01:25:58PM -0400, Yangtao Li wrote: > > > Allwinner Process Voltage Scaling Tables defines the voltage and > > > frequency value based on the speedb

Re: [PATCH v3 1/3] perf: use hweight64 instead of hweight_long

2019-04-11 Thread Mao Han
On Wed, Apr 10, 2019 at 10:28:37AM -0300, Arnaldo Carvalho de Melo wrote: > > > You forgot to convert that one, doing it for you, > > > > Also in perf_event__sample_event_size() we need to do the same thing, > > right? > > and perf_event__synthesize_sample() > > Done, resulting patch is at the e

Re: [PATCH v1 1/3] thermal: rockchip: add pinctrl control

2019-04-11 Thread elaine.zhang
hi, 在 2019/4/4 上午11:03, Daniel Lezcano 写道: On 01/04/2019 08:43, Elaine Zhang wrote: Based on the TSADC Tshut mode to select pinctrl, instead of setting pinctrl based on architecture (Not depends on pinctrl setting by "init" or "default"). And it requires setting the tshut polarity before select

Re: [PATCH 05/12] s390: zcrypt: initialize variables before_use

2019-04-11 Thread Martin Schwidefsky
On Wed, 10 Apr 2019 20:57:21 +0200 Arnd Bergmann wrote: > On Wed, Apr 10, 2019 at 5:59 PM Martin Schwidefsky > wrote: > > On Tue, 9 Apr 2019 11:54:30 +0200 Harald Freudenberger > > wrote: > > > On 08.04.19 23:26, Arnd Bergmann wrote: > > > > } > > > Thanks Arnd, but as Nathan

Re: [PATCH RFC 8/8] ARM: dts: exynos: Add ASV tables for exynos5422/5800

2019-04-11 Thread Anand Moon
Hi Sylwester, As per my knowledge HK soc introduce this table to support overclocking of cpufreq for Odroid XU3 XU4 family for boards. ARM Cortex-A15 Quad CPU (Eagle) 1800 to 2000 ARM Cortex-A7 Quard CPU (Kingfisher) 1400 to 1500 For Exynos5422 below table asv-table-[0-3] AVS range from 200 to

Re: [PATCH V7 3/4] arm64: dts: freescale: imx8qxp: enable scu general irq channel

2019-04-11 Thread Shawn Guo
On Tue, Apr 09, 2019 at 05:00:01AM +, Anson Huang wrote: > On i.MX8QXP, SCU uses MU1 general interrupt channel #3 to notify > user for IRQs of RTC alarm, thermal alarm and WDOG etc., mailbox > RX doorbell mode is used for this function, this patch adds > support for it. > > Signed-off-by: Anso

Re: [PATCH V7 1/4] dt-bindings: fsl: scu: add general interrupt support

2019-04-11 Thread Shawn Guo
On Tue, Apr 09, 2019 at 04:59:49AM +, Anson Huang wrote: > Add scu general interrupt function support. > > Signed-off-by: Anson Huang > Reviewed-by: Rob Herring > Reviewed-by: Dong Aisheng Applied, thanks.

Re: [PATCH V7 2/4] firmware: imx: enable imx scu general irq function

2019-04-11 Thread Shawn Guo
On Tue, Apr 09, 2019 at 04:59:55AM +, Anson Huang wrote: > The System Controller Firmware (SCFW) controls RTC, thermal > and WDOG etc., these resources' interrupt function are managed > by SCU. When any IRQ pending, SCU will notify Linux via MU general > interrupt channel #3, and Linux kernel n

Re: [PATCH 10/12] s390: avoid __builtin_return_address(n) on clang

2019-04-11 Thread Martin Schwidefsky
On Wed, 10 Apr 2019 21:07:56 +0200 Arnd Bergmann wrote: > On Wed, Apr 10, 2019 at 6:14 PM Steven Rostedt wrote: > > On Wed, 10 Apr 2019 18:03:57 +0200 Martin Schwidefsky > > wrote: > > > > > > --- a/arch/s390/include/asm/ftrace.h > > > > +++ b/arch/s390/include/asm/ftrace.h > > > > @@ -13,7

Re: [PATCH-tip v3 05/14] locking/rwsem: Remove rwsem_wake() wakeup optimization

2019-04-11 Thread Peter Zijlstra
On Wed, Apr 10, 2019 at 02:42:22PM -0400, Waiman Long wrote: > With the commit 59aabfc7e959 ("locking/rwsem: Reduce spinlock contention > in wakeup after up_read()/up_write()"), the rwsem_wake() forgoes doing > a wakeup if the wait_lock cannot be directly acquired and an optimistic > spinning locke

Re: [PATCH] ARM: dts: imx6sll: add cooling-cells for cpu-freq cooling device

2019-04-11 Thread Shawn Guo
On Mon, Apr 01, 2019 at 02:51:11AM +, Anson Huang wrote: > Add #cooling-cells for i.MX6SLL cpu-freq cooling device usage. > > Signed-off-by: Anson Huang Applied, thanks.

Re: [PATCH] Staging: rtl8723bs: Remove typedef in struct sdio_data

2019-04-11 Thread Dan Carpenter
On Wed, Apr 10, 2019 at 02:49:09PM -0500, Madhumthia Prabakaran wrote: > On Wed, Apr 10, 2019 at 09:49:54AM +0300, Dan Carpenter wrote: > > On Tue, Apr 09, 2019 at 11:16:17AM -0500, Madhumitha Prabakaran wrote: > > > diff --git a/drivers/staging/rtl8723bs/include/drv_types.h > > > b/drivers/stagin

Re: [PATCH 02/23] watchdog: mena21_wdt: Use 'dev' instead of dereferencing it repeatedly

2019-04-11 Thread Johannes Thumshirn
On 09/04/2019 19:23, Guenter Roeck wrote: > Introduce local variable 'struct device *dev' and use it instead of > dereferencing it repeatedly. > > The conversion was done automatically with coccinelle using the > following semantic patches. The semantic patches and the scripts > used to generate t

<    2   3   4   5   6   7   8   >