[PATCH 15/15] riscv: disable the EFI PECOFF header for M-mode

2019-08-13 Thread Christoph Hellwig
No point in bloating the kernel image with a bootloader header if we run bare metal. Signed-off-by: Christoph Hellwig --- arch/riscv/kernel/head.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/riscv/kernel/head.S b/arch/riscv/kernel/head.S index 670e5cacb24e..09fcf3d000c0 100644 ---

[PATCH 11/15] riscv: don't allow selecting SBI-based drivers for M-mode

2019-08-13 Thread Christoph Hellwig
From: Damien Le Moal Do not allow selecting SBI related options with MMU option not set. Signed-off-by: Damien Le Moal Signed-off-by: Christoph Hellwig --- drivers/tty/hvc/Kconfig| 2 +- drivers/tty/serial/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/driv

[PATCH 06/15] riscv: provide a flat entry loader

2019-08-13 Thread Christoph Hellwig
This allows just loading the kernel at a pre-set address without qemu going bonkers trying to map the ELF file. Signed-off-by: Christoph Hellwig --- arch/riscv/Makefile| 13 + arch/riscv/boot/Makefile | 7 ++- arch/riscv/boot/loader.S | 8 arch/riscv/boot/l

[PATCH 09/15] riscv: implement remote sfence.i natively for M-mode

2019-08-13 Thread Christoph Hellwig
The RISC-V ISA only supports flushing the instruction cache for the local CPU core. For normal S-mode Linux remote flushing is offloaded to machine mode using ecalls, but for M-mode Linux we'll have to do it ourselves. Use the same implementation as all the existing open source SBI implementation

[PATCH 12/15] riscv: use the correct interrupt levels for M-mode

2019-08-13 Thread Christoph Hellwig
The numerical levels for External/Timer/Software interrupts differ between S-mode and M-mode. Signed-off-by: Christoph Hellwig --- arch/riscv/kernel/irq.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/arch/riscv/kernel/irq.c b/arch/riscv/kernel/irq.c index 804f

[PATCH 14/15] riscv: add nommu support

2019-08-13 Thread Christoph Hellwig
The kernel runs in M-mode without using page tables, and thus can't run bare metal without help from additional firmware. Most of the patch is just stubbing out code not needed without page tables, but there is an interesting detail in the signals implementation: - The normal RISC-V syscall ABI

RISC-V nommu support v3

2019-08-13 Thread Christoph Hellwig
Hi all, below is a series to support nommu mode on RISC-V. For now this series just works under qemu with the qemu-virt platform, but Damien has also been able to get kernel based on this tree with additional driver hacks to work on the Kendryte KD210, but that will take a while to cleanup an ups

[PATCH 02/15] riscv: use CSR_SATP instead of the legacy sptbr name in switch_mm

2019-08-13 Thread Christoph Hellwig
Switch to our own constant for the satp register instead of using the old name from a legacy version of the privileged spec. Signed-off-by: Christoph Hellwig Reviewed-by: Atish Patra --- arch/riscv/mm/context.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/riscv

[PATCH 01/15] irqchip/sifive-plic: set max threshold for ignored handlers

2019-08-13 Thread Christoph Hellwig
When running in M-mode we still the S-mode plic handlers in the DT. Ignore them by setting the maximum threshold. Signed-off-by: Christoph Hellwig --- drivers/irqchip/irq-sifive-plic.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-sifive-pl

[PATCH 03/15] riscv: refactor the IPI code

2019-08-13 Thread Christoph Hellwig
This prepare for adding native non-SBI IPI code. Signed-off-by: Christoph Hellwig --- arch/riscv/kernel/smp.c | 55 +++-- 1 file changed, 31 insertions(+), 24 deletions(-) diff --git a/arch/riscv/kernel/smp.c b/arch/riscv/kernel/smp.c index 5a9834503a2f..8cd7

[PATCH 07/15] riscv: read the hart ID from mhartid on boot

2019-08-13 Thread Christoph Hellwig
From: Damien Le Moal When in M-Mode, we can use the mhartid CSR to get the ID of the running HART. Doing so, direct M-Mode boot without firmware is possible. Signed-off-by: Damien Le Moal Signed-off-by: Christoph Hellwig Reviewed-by: Atish Patra --- arch/riscv/include/asm/csr.h | 1 + arch/r

[PATCH 04/15] riscv: abstract out CSR names for supervisor vs machine mode

2019-08-13 Thread Christoph Hellwig
Many of the privileged CSRs exist in a supervisor and machine version that are used very similarly. Provide a new X-naming layer so that we don't have to ifdef everywhere for M-mode Linux support. Contains contributions from Damien Le Moal . Signed-off-by: Christoph Hellwig Reviewed-by: Atish P

Re: [PATCH -next] ALSA: hda/sigmatel - remove unused variable 'stac9200_core_init'

2019-08-13 Thread Takashi Iwai
On Tue, 13 Aug 2019 16:43:23 +0200, YueHaibing wrote: > > sound/pci/hda/patch_sigmatel.c:981:30: warning: > stac9200_core_init defined but not used [-Wunused-const-variable=] > > It is never used, so can be removed. > > Reported-by: Hulk Robot > Signed-off-by: YueHaibing Applied, thanks. T

Re: [RFC,v2 3/6] media: dt-bindings: add DS90UB954-Q1 video deserializer

2019-08-13 Thread Rob Herring
On Tue, Jul 23, 2019 at 10:37:20PM +0200, Luca Ceresoli wrote: > Describe the Texas Instruments DS90UB954-Q1, a 2-input video deserializer > with I2C Address Translator and remote GPIOs. > > Signed-off-by: Luca Ceresoli > > --- > > Changes RFCv1 -> RFCv2: > > - add explicit aliases for the FP

Re: [PATCH RFC v1 1/2] rcu/tree: Add basic support for kfree_rcu batching

2019-08-13 Thread Paul E. McKenney
On Tue, Aug 13, 2019 at 02:29:54PM +0900, Byungchul Park wrote: > On Mon, Aug 12, 2019 at 09:12:34AM -0400, Joel Fernandes wrote: > > On Mon, Aug 12, 2019 at 07:10:52PM +0900, Byungchul Park wrote: > > > On Sun, Aug 11, 2019 at 04:49:39PM -0700, Paul E. McKenney wrote: > > > > Maybe. Note well tha

Re: [PATCH v2] kbuild: Parameterize kallsyms generation and correct reporting

2019-08-13 Thread Masahiro Yamada
On Wed, Aug 14, 2019 at 12:15 AM Kees Cook wrote: > > When kallsyms generation happens, temporary vmlinux outputs are linked > but the quiet make output didn't report it, giving the impression that > the prior command is taking longer than expected. > > Instead, report the linking step explicitly.

Re: [PATCH v1 2/2] irqchip/tegra: Clean up coding style

2019-08-13 Thread Dmitry Osipenko
13.08.2019 17:50, Marc Zyngier пишет: > On Sun, 11 Aug 2019 19:30:44 +0100, > Dmitry Osipenko wrote: >> >> Make coding style to conform to the kernel's standard by fixing checkpatch >> warnings about "line over 80 characters". > > The last time I used a VT100 was about 30 years ago. I still think

Re: [PATCH 16/17] riscv: clear the instruction cache and all registers when booting

2019-08-13 Thread Christoph Hellwig
On Mon, Jul 08, 2019 at 01:26:33AM -0700, Palmer Dabbelt wrote: >>> + csrssstatus, t1 > > You need to check that the write stuck and branch around the FP instructions. > Specifically, CONFIG_FPU means there may be an FPU, not there's definately an > FPU. You should also turn the FPU back off

Re: [PATCH 2/2] net: gmii2rgmii: Switch priv field in mdio device structure

2019-08-13 Thread Andrew Lunn
> > The kernel does have a few helper, spi_get_drvdata, pci_get_drvdata, > > hci_get_drvdata. So maybe had add phydev_get_drvdata(struct phy_device > > *phydev)? > > Maybe phydev_mdio_get_drvdata? Because the driver data member available is > phydev->mdio.dev.driver_data. I still prefer phydev_ge

Re: [PATCH 16/17] riscv: clear the instruction cache and all registers when booting

2019-08-13 Thread h...@lst.de
On Mon, Jul 01, 2019 at 09:26:18PM +, Atish Patra wrote: > That means it should be done for S-mode as well. Right ? For S-mode the bootloader/sbi should take care of it.

Re: [PATCH v1] perf record: Add an option to take an AUX snapshot on exit

2019-08-13 Thread Arnaldo Carvalho de Melo
Em Tue, Aug 06, 2019 at 05:41:01PM +0300, Alexander Shishkin escreveu: > It is sometimes useful to generate a snapshot when perf record exits; > I've been using a wrapper script around the workload that would do a > killall -USR2 perf when the workload exits. > > @@ -654,7 +670,7 @@ int record__au

Re: linux-next: build failure after merge of the rcu tree

2019-08-13 Thread Paul E. McKenney
On Tue, Aug 13, 2019 at 05:57:32PM +1000, Stephen Rothwell wrote: > Hi all, > > After merging the rcu tree, today's linux-next build (powerpc allnoconfig) > failed like this: > > drivers/base/core.c: In function 'device_links_read_lock_held': > drivers/base/core.c:106:9: error: implicit declarati

Re: [PATCH v3 5/8] dt-bindings: PCI: Add Amazon's Annapurna Labs PCIe host bridge binding

2019-08-13 Thread Rob Herring
On Tue, Jul 23, 2019 at 12:27:08PM +0300, Jonathan Chocron wrote: > Document Amazon's Annapurna Labs PCIe host bridge. > > Signed-off-by: Jonathan Chocron > --- > .../devicetree/bindings/pci/pcie-al.txt | 45 +++ > MAINTAINERS | 3 +- > 2

Re: kernel BUG at net/rxrpc/local_object.c:LINE!

2019-08-13 Thread David Howells
Dmitry Vyukov wrote: > It only collects console output. I don't know what is trace log. If > the trace log is not console output, then it won't. Assuming the system is still alive: cat /sys/kernel/debug/tracing/trace David

[PATCH 3/3] mm/vmalloc: Sync unmappings in __purge_vmap_area_lazy()

2019-08-13 Thread Joerg Roedel
From: Joerg Roedel commit 3f8fd02b1bf1d7ba964485a56f2f4b53ae88c167 upstream. On x86-32 with PTI enabled, parts of the kernel page-tables are not shared between processes. This can cause mappings in the vmalloc/ioremap area to persist in some page-tables after the region is unmapped and released.

Re: [PATCH v5 1/6] mm/page_idle: Add per-pid idle page tracking using virtual index

2019-08-13 Thread Jann Horn
On Tue, Aug 13, 2019 at 12:09 PM Michal Hocko wrote: > On Mon 12-08-19 20:14:38, Jann Horn wrote: > > On Wed, Aug 7, 2019 at 7:16 PM Joel Fernandes (Google) > > wrote: > > > The page_idle tracking feature currently requires looking up the pagemap > > > for a process followed by interacting with /

[PATCH 0/3 4.19-stable] Sync mappings in vmalloc/ioremap areas

2019-08-13 Thread Joerg Roedel
From: Joerg Roedel Backport commits from upstream to fix a data corruption issue that gets exposed when using PTI on x86-32. Please consider them for inclusion into stable-4.19. Joerg Roedel (3): x86/mm: Check for pfn instead of page in vmalloc_sync_one() x86/mm: Sync also unmappings in vma

[PATCH 3/3] mm/vmalloc: Sync unmappings in __purge_vmap_area_lazy()

2019-08-13 Thread Joerg Roedel
From: Joerg Roedel commit 3f8fd02b1bf1d7ba964485a56f2f4b53ae88c167 upstream. On x86-32 with PTI enabled, parts of the kernel page-tables are not shared between processes. This can cause mappings in the vmalloc/ioremap area to persist in some page-tables after the region is unmapped and released.

[PATCH 2/3] x86/mm: Sync also unmappings in vmalloc_sync_all()

2019-08-13 Thread Joerg Roedel
From: Joerg Roedel commit 8e998fc24de47c55b47a887f6c95ab91acd4a720 upstream. With huge-page ioremap areas the unmappings also need to be synced between all page-tables. Otherwise it can cause data corruption when a region is unmapped and later re-used. Make the vmalloc_sync_one() function ready

[PATCH 0/3 5.2-stable] Sync mappings in vmalloc/ioremap areas

2019-08-13 Thread Joerg Roedel
From: Joerg Roedel Backport commits from upstream to fix a data corruption issue that gets exposed when using PTI on x86-32. Please consider them for inclusion into stable-5.2. Joerg Roedel (3): x86/mm: Check for pfn instead of page in vmalloc_sync_one() x86/mm: Sync also unmappings in vmal

[PATCH 1/3] x86/mm: Check for pfn instead of page in vmalloc_sync_one()

2019-08-13 Thread Joerg Roedel
From: Joerg Roedel commit 51b75b5b563a2637f9d8dc5bd02a31b2ff9e5ea0 upstream. Do not require a struct page for the mapped memory location because it might not exist. This can happen when an ioremapped region is mapped with 2MB pages. Fixes: 5d72b4fba40ef ('x86, mm: support huge I/O mapping capab

[PATCH 2/3] x86/mm: Sync also unmappings in vmalloc_sync_all()

2019-08-13 Thread Joerg Roedel
From: Joerg Roedel commit 8e998fc24de47c55b47a887f6c95ab91acd4a720 upstream. With huge-page ioremap areas the unmappings also need to be synced between all page-tables. Otherwise it can cause data corruption when a region is unmapped and later re-used. Make the vmalloc_sync_one() function ready

Re: [PATCH 01/16] ARM: remove ks8695 platform

2019-08-13 Thread Ben Dooks
On 09/08/2019 21:27, Arnd Bergmann wrote: ks8695 is an older SoC originally made by Kendin, which was later acquired by Micrel, and subsequently by Microchip. The platform port was originally contributed by Andrew Victor and Ben Dooks, and later maintained by Greg Ungerer. When I recently submi

[PATCH 1/3] x86/mm: Check for pfn instead of page in vmalloc_sync_one()

2019-08-13 Thread Joerg Roedel
From: Joerg Roedel commit 51b75b5b563a2637f9d8dc5bd02a31b2ff9e5ea0 upstream. Do not require a struct page for the mapped memory location because it might not exist. This can happen when an ioremapped region is mapped with 2MB pages. Fixes: 5d72b4fba40ef ('x86, mm: support huge I/O mapping capab

Re: [PATCH v2 03/10] module: add support for symbol namespaces.

2019-08-13 Thread Greg KH
On Tue, Aug 13, 2019 at 01:17:00PM +0100, Matthias Maennich wrote: > The EXPORT_SYMBOL_NS() and EXPORT_SYMBOL_NS_GPL() macros can be used to > export a symbol to a specific namespace. There are no _GPL_FUTURE and > _UNUSED variants because these are currently unused, and I'm not sure > they are ne

Re: [PATCH v5 01/10] dt-bindings: add powercontroller

2019-08-13 Thread Rob Herring
On Mon, Aug 12, 2019 at 6:24 AM Frank Wunderlich wrote: > > From: Josef Friedl > > add mt6323-rtc and mt6323-pwrc to mt6397 mfd DT bindings > an example is shown in mt6323-poweroff.txt How does this get to v5 with such a terrible subject? At least give some indication this is for some Mediatek c

Re: [PATCH v2] driver/core: Fix build error when SRCU and lockdep disabled

2019-08-13 Thread Greg Kroah-Hartman
On Tue, Aug 13, 2019 at 09:40:14AM -0400, Joel Fernandes wrote: > On Tue, Aug 13, 2019 at 09:39:05AM -0400, Joel Fernandes wrote: > [snip] > > > > drivers/base/core.c | 4 +++- > > > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > > > > > diff --git a/drivers/base/core.c b/drivers/base/

Re: rcu/nocb: Add bypass callback queueing, bug report

2019-08-13 Thread Paul E. McKenney
On Tue, Aug 13, 2019 at 01:34:02PM +0100, Colin Ian King wrote: > Hi, > > Static analysis on linux-next today found an issue in the following commit: > > commit 1afc4b18724f8f7b7a21fdf66cd43cc4a932812d > Author: Paul E. McKenney > Date: Tue Jul 2 16:03:33 2019 -0700 > > rcu/nocb: Add bypa

Re: [RFC PATCH 0/2] Add predictive memory reclamation and compaction

2019-08-13 Thread Khalid Aziz
On 8/13/19 8:05 AM, Michal Hocko wrote: > On Mon 12-08-19 19:40:10, Khalid Aziz wrote: > [...] >> Patch 1 adds code to maintain a sliding lookback window of (time, number >> of free pages) points which can be updated continuously and adds code to >> compute best fit line across these points. It als

Re: Kernel 5.3.x, 5.2.2+: VMware player suspend on 64/32 bit guests

2019-08-13 Thread Woody Suwalski
On Mon, Aug 12, 2019 at 1:24 PM Thomas Gleixner wrote: > On Mon, 12 Aug 2019, Woody Suwalski wrote: > > > I have added a timeout counter in __synchronize_hardirq(). > > At the bottom I have converted while(inprogress); to while(inprogress > > && timeout++ < 100); > > > > That is bypassing the susp

Re: [PATCH v5 1/6] mm/page_idle: Add per-pid idle page tracking using virtual index

2019-08-13 Thread Jann Horn
On Tue, Aug 13, 2019 at 4:25 PM Joel Fernandes wrote: > On Tue, Aug 13, 2019 at 12:08:56PM +0200, Michal Hocko wrote: > > On Mon 12-08-19 20:14:38, Jann Horn wrote: > > > On Wed, Aug 7, 2019 at 7:16 PM Joel Fernandes (Google) > > > wrote: > > > > The page_idle tracking feature currently requires

Re: [PATCH] kbuild: Parameterize kallsyms generation and correct reporting

2019-08-13 Thread Kees Cook
On Wed, Aug 14, 2019 at 12:00:05AM +0900, Masahiro Yamada wrote: > On Tue, Aug 13, 2019 at 6:49 AM Kees Cook wrote: > > > > When kallsyms generation happens, temporary vmlinux outputs are linked > > but the quiet make output doesn't report it, giving the impression that > > the prior command is ta

Re: [PATCH v2 2/2] pwm: sprd: Add Spreadtrum PWM support

2019-08-13 Thread Uwe Kleine-König
Hello, On Tue, Aug 13, 2019 at 09:46:41PM +0800, Baolin Wang wrote: > This patch adds the Spreadtrum PWM support, which provides maximum 4 > channels. > > Signed-off-by: Neo Hou > Signed-off-by: Baolin Wang > --- > Changes from v1: > - Add depending on HAS_IOMEM. > - Rename parameters' names.

Re: [PATCH 2/6] irqchip: Add Realtek RTD129x intc driver

2019-08-13 Thread Marc Zyngier
On Mon, 12 Aug 2019 09:26:48 +0100, Aleix Roca Nonell wrote: > > Hi Mark and everyone! Sorry for the large delay, I'm doing this in my > free time, which is not that abundant. In this mail, I'm focusing only > on the largest change mentioned by Mark. I will answer the rest later. > > On Mon, Jul

[PATCH v2] kbuild: Parameterize kallsyms generation and correct reporting

2019-08-13 Thread Kees Cook
When kallsyms generation happens, temporary vmlinux outputs are linked but the quiet make output didn't report it, giving the impression that the prior command is taking longer than expected. Instead, report the linking step explicitly. While at it, this consolidates the repeated "kallsyms generat

Re: [PATCH] MAINTAINERS: iomap: Remove fs/iomap.c record

2019-08-13 Thread Darrick J. Wong
On Tue, Aug 13, 2019 at 09:13:25AM +0300, Denis Efremov wrote: > Update MAINTAINERS to reflect that fs/iomap.c file > was splitted into separate files in fs/iomap/ > > Cc: Darrick J. Wong > Cc: Christoph Hellwig > Cc: linux-fsde...@vger.kernel.org > Fixes: cb7181ff4b1c ("iomap: move the main ite

Re: [PATCH 2/2] net: gmii2rgmii: Switch priv field in mdio device structure

2019-08-13 Thread Harini Katakam
Hi Andrew, On Tue, Aug 13, 2019 at 6:54 PM Andrew Lunn wrote: > > On Tue, Aug 13, 2019 at 04:46:40PM +0530, Harini Katakam wrote: > > Hi Andrew, > > > > On Thu, Aug 1, 2019 at 9:36 AM Andrew Lunn wrote: > > > > > > On Wed, Jul 31, 2019 at 03:06:19PM +0530, Harini Katakam wrote: > > > > Use the p

Re: kernel BUG at net/rxrpc/local_object.c:LINE!

2019-08-13 Thread Dmitry Vyukov
On Tue, Aug 13, 2019 at 5:06 PM David Howells wrote: > > Dmitry Vyukov wrote: > > > > I meant that I don't know how to turn a tracepoint on from inside the > > > kernel. > > > > This /sys/kernel/debug/tracing/events/rxrpc/rxrpc_local/enable in: > > echo 1 > /sys/kernel/debug/tracing/even

Re: linux-next: Tree for Aug 13

2019-08-13 Thread Vasily Gorbik
On Tue, Aug 13, 2019 at 10:56:45AM -0400, Steven Rostedt wrote: > > This looks related to what Marek posted. > > > https://lore.kernel.org/linux-security-module/3028ed35-3b6d-459f-f3c8-103c5636f...@samsung.com/ > > Care to apply the change he suggested to see if it fixes the issue for > you.

Re: [Intel-gfx] [PATCH v6 08/17] drm/ttm: use gem vma_node

2019-08-13 Thread Thierry Reding
On Mon, Aug 05, 2019 at 04:01:10PM +0200, Gerd Hoffmann wrote: > Drop vma_node from ttm_buffer_object, use the gem struct > (base.vma_node) instead. > > Signed-off-by: Gerd Hoffmann > Reviewed-by: Christian König > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 2 +- > drivers/gpu/drm/qxl/q

Re: [PATCH v1 1/2] irqchip/tegra: Remove everything related to COP

2019-08-13 Thread Dmitry Osipenko
13.08.2019 17:25, Marc Zyngier пишет: > On Sun, 11 Aug 2019 19:30:43 +0100, > Dmitry Osipenko wrote: >> >> There is no point in touching of the COP (ARM7TDMI auxiliary boot/firmware >> CPU) because COP's interrupts should be related only to an old multimedia >> firmware that is not applicable to t

[PATCH v3 6/9] ARM: EXYNOS: Enable exynos-asv driver for ARCH_EXYNOS

2019-08-13 Thread Sylwester Nawrocki
Enable exynos-asv driver for Exynos 32-bit SoCs. Signed-off-by: Sylwester Nawrocki --- Changes since v1 (RFC): - none --- arch/arm/mach-exynos/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig index f83786640f94..bba61354c340

[PATCH v3 4/9] ARM: EXYNOS: enable exynos_chipid for ARCH_EXYNOS

2019-08-13 Thread Sylwester Nawrocki
From: Pankaj Dubey As now we have chipid driver to initialize SoC related information let's include it in build by default. Signed-off-by: Pankaj Dubey Reviewed-by: Krzysztof Kozlowski Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Sylwester Nawrocki --- Changes since v1 (RFC): - n

[PATCH v3 8/9] ARM: dts: Add "syscon" compatible string to chipid node

2019-08-13 Thread Sylwester Nawrocki
The CHIP ID block in addition to exact chip revision information contains data and control registers for ASV (Adaptive Supply Voltage) and ABB (Adaptive Body Bias). Add "syscon" compatible so the CHIPID block can be shared by respective drivers. Signed-off-by: Sylwester Nawrocki --- Changes since

[PATCH v3 2/9] soc: samsung: Convert exynos-chipid driver to use the regmap API

2019-08-13 Thread Sylwester Nawrocki
Convert the driver to use regmap API in order to allow other drivers, like ASV, to access the CHIPID registers. This patch adds definition of selected CHIPID register offsets and register bit fields for Exynos5422 SoC. Signed-off-by: Sylwester Nawrocki --- Changes since v2: - s/_EXYNOS_ASV_H/__

[PATCH v3 9/9] ARM: dts: Add samsung,asv-bin property for odroidxu3-lite

2019-08-13 Thread Sylwester Nawrocki
The Exynos5422 SoC used on Odroid XU3 Lite boards belongs to a special ASV bin but this information cannot be read from the CHIPID block registers. Add samsung,asv-bin property for XU3 Lite to ensure the ASV bin is properly determined. Signed-off-by: Sylwester Nawrocki --- Changes since v2: - no

[PATCH v3 7/9] soc: samsung: Update the CHIP ID DT binding documentation

2019-08-13 Thread Sylwester Nawrocki
This patch adds documentation of a new optional "samsung,asv-bin" property in the chipid device node and documents requirement of "syscon" compatible string. These additions are needed to support Exynos ASV (Adaptive Supply Voltage) feature. Signed-off-by: Sylwester Nawrocki --- Changes since v2

[PATCH v3 3/9] soc: samsung: Add Exynos Adaptive Supply Voltage driver

2019-08-13 Thread Sylwester Nawrocki
The Adaptive Supply Voltage (ASV) driver adjusts CPU cluster operating points depending on exact revision of an SoC retrieved from the CHIPID block or the OTP memory. This allows for some power saving as for some CPU clock frequencies we can lower CPU cluster supply voltage comparing to safe value

[PATCH v3 1/9] soc: samsung: Add exynos chipid driver support

2019-08-13 Thread Sylwester Nawrocki
From: Pankaj Dubey Exynos SoCs have Chipid, for identification of product IDs and SoC revisions. This patch intends to provide initialization code for all these functionalities, at the same time it provides some sysfs entries for accessing these information to user-space. This driver uses existi

[PATCH v3 5/9] ARM64: EXYNOS: enable exynos_chipid for ARCH_EXYNOS

2019-08-13 Thread Sylwester Nawrocki
From: Pankaj Dubey This patch enables exynos_chipid driver for ARCH_EXYNOS based SoC. Signed-off-by: Pankaj Dubey Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Sylwester Nawrocki --- Changes since v1 (RFC): - none --- arch/arm64/Kconfig.platforms | 1 + 1 file changed, 1 insertion

[PATCH v3 0/9] Exynos Adaptive Supply Voltage support

2019-08-13 Thread Sylwester Nawrocki
This is third iteration of my patch series adding ASV (Adaptive Supply Voltage) support for Exynos SoCs. The previous one can be found at: https://lore.kernel.org/lkml/20190718143044.25066-1-s.nawro...@samsung.com There is no major changes in this series comparing to v2, only minor corrections ad

Re: [PATCH 0/3] x86/mtrr, pat: make PAT independent from MTRR

2019-08-13 Thread Kani, Toshi
On Tue, 2019-08-13 at 00:49 -0700, Isaku Yamahata wrote: > On Fri, Aug 09, 2019 at 07:51:17PM +, > "Kani, Toshi" wrote: > > > On Fri, 2019-08-09 at 09:06 +0200, Borislav Petkov wrote: > > > On Thu, Aug 08, 2019 at 08:54:17PM -0700, Isaku Yamahata wrote: > > > > Make PAT(Page Attribute Table)

Re: kernel BUG at net/rxrpc/local_object.c:LINE!

2019-08-13 Thread David Howells
Dmitry Vyukov wrote: > > I meant that I don't know how to turn a tracepoint on from inside the > > kernel. > > This /sys/kernel/debug/tracing/events/rxrpc/rxrpc_local/enable in: > echo 1 > /sys/kernel/debug/tracing/events/rxrpc/rxrpc_local/enable > should map to some global variable, ri

Re: [PATCH v12 5/6] khugepaged: enable collapse pmd for pte-mapped THP

2019-08-13 Thread Kirill A. Shutemov
On Tue, Aug 13, 2019 at 04:05:53PM +0200, Oleg Nesterov wrote: > On 08/13, Oleg Nesterov wrote: > > > > On 08/12, Kirill A. Shutemov wrote: > > > > > > On Mon, Aug 12, 2019 at 03:22:58PM +0200, Oleg Nesterov wrote: > > > > On 08/12, Kirill A. Shutemov wrote: > > > > > > > > > > On Fri, Aug 09, 2019

Re: [PATCH] gcc-plugins: Enable error message print

2019-08-13 Thread Kees Cook
On Tue, Aug 13, 2019 at 05:44:49PM +0800, zhe...@windriver.com wrote: > From: He Zhe > > Instead of sliently emptying CONFIG_PLUGIN_HOSTCC which is the dependency > of a series of configurations, the following error message would be easier > for users to find something is wrong and what is happen

Re: [PATCH] kbuild: Parameterize kallsyms generation and correct reporting

2019-08-13 Thread Masahiro Yamada
On Tue, Aug 13, 2019 at 6:49 AM Kees Cook wrote: > > When kallsyms generation happens, temporary vmlinux outputs are linked > but the quiet make output doesn't report it, giving the impression that > the prior command is taking longer than expected. > > Instead, report the KSYM step before the tem

Re: [PATCH] riscv: dts: sifive: Add missing "clock-frequency" to cpu0/cpu1 nodes

2019-08-13 Thread Paul Walmsley
On Tue, 6 Aug 2019, Bin Meng wrote: > Add the missing "clock-frequency" property to the cpu0/cpu1 nodes > for consistency with other cpu nodes. > > Signed-off-by: Bin Meng Is this being driven by a schema validator warning? If not, and this property isn't required, it seems better just to dro

Re: [PATCH v2 06/24] EDAC: Kill EDAC_DIMM_PTR() macro

2019-08-13 Thread Borislav Petkov
> Subject: Re: [PATCH v2 06/24] EDAC: Kill EDAC_DIMM_PTR() macro s/Kill/Replace ... with/ On Mon, Jun 24, 2019 at 03:09:06PM +, Robert Richter wrote: > Get rid of this macro and instead use the new function > edac_get_dimm(). Also introduce the edac_get_dimm_by_index() function > for later

[PATCH] tracefs: avoid crash when open callback is not set

2019-08-13 Thread Vasily Gorbik
Some tracefs files, e.g. tracing/events/syscalls/*/id do not define "open" file operation. Yet commit 757ff7244358 ("tracefs: Restrict tracefs when the kernel is locked down") introduces "open" proxy which unconditionally calls original open callback, which causes kernel crash when the callback is

Re: linux-next: Tree for Aug 13

2019-08-13 Thread Vasily Gorbik
eadm_sch(E) sch_fq_codel(E) > [ 3972.384076] sha256_s390(E) sha_common(E) pkey(E) zcrypt(E) rng_core(E) > autofs4(E) [last unloaded: dummy_del_mod] > [ 3972.384084] CPU: 17 PID: 45118 Comm: psvc-ioctl-bpf1 Tainted: G > OE 5.3.0-20190813.rc4.git0.8e72ac275c63.301.fc30.

Re: linux-next: Tree for Aug 13

2019-08-13 Thread Steven Rostedt
(E) > [ 3972.384076] sha256_s390(E) sha_common(E) pkey(E) zcrypt(E) rng_core(E) > autofs4(E) [last unloaded: dummy_del_mod] > [ 3972.384084] CPU: 17 PID: 45118 Comm: psvc-ioctl-bpf1 Tainted: G > OE 5.3.0-20190813.rc4.git0.8e72ac275c63.301.fc30.s390x+next #1 >

[PATCH v4 2/3] interconnect: Add pre_aggregate() callback

2019-08-13 Thread Georgi Djakov
Introduce an optional callback in interconnect provider drivers. It can be used for implementing actions, that need to be executed before the actual aggregation of the bandwidth requests has started. The benefit of this for now is that it will significantly simplify the code in provider drivers.

[PATCH v4 1/3] interconnect: Add support for path tags

2019-08-13 Thread Georgi Djakov
Consumers may have use cases with different bandwidth requirements based on the system or driver state. The consumer driver can append a specific tag to the path and pass this information to the interconnect platform driver to do the aggregation based on this state. Introduce icc_set_tag() functio

[PATCH v4 3/3] interconnect: qcom: Add tagging and wake/sleep support for sdm845

2019-08-13 Thread Georgi Djakov
From: David Dai Add support for wake and sleep commands by using a tag to indicate whether or not the aggregate and set requests fall into execution state specific bucket. Signed-off-by: David Dai Signed-off-by: Georgi Djakov --- drivers/interconnect/qcom/sdm845.c | 139 ++

[PATCH v4 0/3] interconnect: Add path tagging support

2019-08-13 Thread Georgi Djakov
SoCs that have multiple coexisting CPUs and DSPs, may have shared interconnect buses between them. In such cases, each CPU/DSP may have different bandwidth needs, depending on whether it is active or sleeping. This means that we have to keep different bandwidth configurations for the CPU (active/sl

Re: [PATCH v2 1/5] soundwire: Add compute_params callback

2019-08-13 Thread Pierre-Louis Bossart
On 8/13/19 3:35 AM, Srinivas Kandagatla wrote: From: Vinod Koul This callback allows masters to compute the bus parameters required. This looks like a partial use of the patch ('soundwire: Add Intel resource management algorithm')? see comments below Signed-off-by: Vinod Koul Signed-off

Re: [alsa-devel] [PATCH v2 3/5] ASoC: core: add support to snd_soc_dai_get_sdw_stream()

2019-08-13 Thread Pierre-Louis Bossart
On 8/13/19 3:35 AM, Srinivas Kandagatla wrote: On platforms which have smart speaker amplifiers connected via soundwire and modeled as aux devices in ASoC, in such usecases machine driver should be able to get sdw master stream from dai so that it can use the runtime stream to setup slave streams

Re: [PATCH 06/26] drm/dp_mst: Move PDT teardown for ports into destroy_connector_work

2019-08-13 Thread Daniel Vetter
On Wed, Jul 17, 2019 at 09:42:29PM -0400, Lyude Paul wrote: > This will allow us to add some locking for port PDTs, which can't be > done from drm_dp_destroy_port() since we don't know what locks the > caller might be holding. Also, this gets rid of a good bit of unneeded > code. > > Cc: Juston Li

Re: [PATCH v2 0/2] Simplify mtty driver and mdev core

2019-08-13 Thread Alex Williamson
On Tue, 13 Aug 2019 14:40:02 + Parav Pandit wrote: > > -Original Message- > > From: Kirti Wankhede > > Sent: Monday, August 12, 2019 5:06 PM > > To: Alex Williamson ; Parav Pandit > > > > Cc: k...@vger.kernel.org; linux-kernel@vger.kernel.org; coh...@redhat.com; > > c...@nvidia.com

Re: [PATCH v1 2/2] irqchip/tegra: Clean up coding style

2019-08-13 Thread Marc Zyngier
On Sun, 11 Aug 2019 19:30:44 +0100, Dmitry Osipenko wrote: > > Make coding style to conform to the kernel's standard by fixing checkpatch > warnings about "line over 80 characters". The last time I used a VT100 was about 30 years ago. I still think this was one of the most brilliant piece of equ

Re: [Linux-kernel-mentees][PATCH v5 1/1] sgi-gru: Remove *pte_lookup functions, Convert to get_user_page*()

2019-08-13 Thread Dimitri Sivanich
Bharath, I do not believe that __get_user_pages_fast will work for the atomic case, as there is no guarantee that the 'current->mm' will be the correct one for the process in question, as the process might have moved away from the cpu that is handling interrupts for it's context. On Sat, Aug 10,

RE: [PATCH v2 0/2] Simplify mtty driver and mdev core

2019-08-13 Thread Parav Pandit
Hi Alex, > -Original Message- > From: Alex Williamson > Sent: Friday, August 9, 2019 4:33 AM > To: Parav Pandit > Cc: k...@vger.kernel.org; kwankh...@nvidia.com; linux- > ker...@vger.kernel.org; coh...@redhat.com; c...@nvidia.com > Subject: Re: [PATCH v2 0/2] Simplify mtty driver and md

Re: [PATCH RFC tip/core/rcu 14/14] rcu/nohz: Make multi_cpu_stop() enable tick on all online CPUs

2019-08-13 Thread Paul E. McKenney
On Tue, Aug 13, 2019 at 02:30:19PM +0200, Frederic Weisbecker wrote: > On Mon, Aug 12, 2019 at 04:23:16PM -0700, Paul E. McKenney wrote: > > On Mon, Aug 12, 2019 at 11:02:33PM +0200, Frederic Weisbecker wrote: > > > On Fri, Aug 02, 2019 at 08:15:01AM -0700, Paul E. McKenney wrote: > > > Looks like

KMSAN: uninit-value in ipv6_find_tlv

2019-08-13 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:61ccdad1 Revert "drm/bochs: Use shadow buffer for bochs fr.. git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=1229a18c60 kernel config: https://syzkaller.appspot.c

[PATCH v2 1/2] drm/msm: Remove Kconfig default

2019-08-13 Thread Jordan Crouse
Remove the default for CONFIG_DRM_MSM and let the user select the driver manually as one does. Additionally select QCOM_COMMAND_DB for ARCH_QCOM targets to make sure it doesn't get missed when we need it for a6xx targets. v2: Move from default 'm' to no default Signed-off-by: Jordan Crouse ---

[PATCH v2 2/2] arm: Add DRM_MSM to defconfigs with ARCH_QCOM

2019-08-13 Thread Jordan Crouse
Now that CONFIG_DRM_MSM is no longer default 'y' add it as a module to all ARCH_QCOM enabled defconfigs to restore the previous expected build behavior. Signed-off-by: Jordan Crouse --- arch/arm/configs/multi_v7_defconfig | 1 + arch/arm/configs/qcom_defconfig | 1 + arch/arm64/configs/defc

Re: [PATCH v6 2/2] selftests: add tests for clone3()

2019-08-13 Thread Christian Brauner
On Mon, Aug 12, 2019 at 10:09:39PM +0200, Adrian Reber wrote: > This tests clone3() with and without set_tid to see if all desired PIDs > are working as expected. The test tries to clone3() with a set_tid of > -1, 1, pid_max, a PID which is already in use and an unused PID. The > same tests are als

Re: [PATCH v12 5/6] khugepaged: enable collapse pmd for pte-mapped THP

2019-08-13 Thread Song Liu
Hi Oleg, > On Aug 12, 2019, at 2:04 PM, Song Liu wrote: > > > >> On Aug 12, 2019, at 7:40 AM, Kirill A. Shutemov wrote: >> >> On Mon, Aug 12, 2019 at 03:22:58PM +0200, Oleg Nesterov wrote: >>> On 08/12, Kirill A. Shutemov wrote: On Fri, Aug 09, 2019 at 06:01:18PM +, Song Liu w

[PATCH -next] ALSA: hda/sigmatel - remove unused variable 'stac9200_core_init'

2019-08-13 Thread YueHaibing
sound/pci/hda/patch_sigmatel.c:981:30: warning: stac9200_core_init defined but not used [-Wunused-const-variable=] It is never used, so can be removed. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- sound/pci/hda/patch_sigmatel.c | 9 - 1 file changed, 9 deletions(-) diff --gi

Re: [PATCH] Add flags option to get xattr method paired to __vfs_getxattr

2019-08-13 Thread Mark Salyzyn
On 8/13/19 5:48 AM, Sasha Levin wrote: Hi, [This is an automated email] This commit has been processed because it contains a -stable tag. The stable tag indicates that it's relevant for the following trees: all The bot has tested the following trees: v5.2.8, v4.19.66, v4.14.138, v4.9.189, v4.

[PATCH v4 3/3] mmc: host: sdhci-pci: add Genesys Logic GL975x support

2019-08-13 Thread Michael K. Johnson
Add support for the GL9750 and GL9755 chipsets. Signed-off-by: Ben Chuang Co-developed-by: Michael K Johnson Signed-off-by: Michael K Johnson diff --git a/drivers/mmc/host/Makefile b/drivers/mmc/host/Makefile index 73578718f119..661445415090 100644 --- a/drivers/mmc/host/Makefile +++ b/drivers

Re: "arm64/for-next/core" causes boot panic

2019-08-13 Thread Steve Capper
On Tue, Aug 13, 2019 at 03:04:52PM +0100, Steve Capper wrote: > Hi Will, > > On Tue, Aug 13, 2019 at 01:06:44PM +0100, Will Deacon wrote: > > [+Steve] > > > > On Tue, Aug 13, 2019 at 11:58:52AM +0100, Will Deacon wrote: > > > On Tue, Aug 13, 2019 at 10:02:01AM +0100, Will Deacon wrote: > > > > On

[PATCH -next] ASoC: mediatek: mt8183-mt6358-ts3a227-max98357: remove unused variables

2019-08-13 Thread YueHaibing
sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c:50:1: warning: mt8183_mt6358_ts3a227_max98357_dapm_widgets defined but not used [-Wunused-const-variable=] sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c:55:1: warning: mt8183_mt6358_ts3a227_max98357_dapm_routes defined but n

Re: [PATCH v3 3/2] mmc: host: sdhci-pci: add Genesys Logic GL975x support

2019-08-13 Thread Michael K. Johnson
On Mon, Aug 12, 2019 at 06:58:26PM -0400, Michael K. Johnson wrote: > Add support for the GL9750 and GL9755 chipsets. This patch has a bug introduced in responding to feedback; it invokes the wrong reset functions. New v4 patch coming next will fix that, is based on the first two (unchanged) v3 p

RE: [PATCH v2 0/2] Simplify mtty driver and mdev core

2019-08-13 Thread Parav Pandit
> -Original Message- > From: Kirti Wankhede > Sent: Monday, August 12, 2019 5:06 PM > To: Alex Williamson ; Parav Pandit > > Cc: k...@vger.kernel.org; linux-kernel@vger.kernel.org; coh...@redhat.com; > c...@nvidia.com > Subject: Re: [PATCH v2 0/2] Simplify mtty driver and mdev core > >

Re: [PATCH v2] net/mlx4_en: fix a memory leak bug

2019-08-13 Thread Tariq Toukan
On 8/12/2019 10:11 PM, Wenwen Wang wrote: > In mlx4_en_config_rss_steer(), 'rss_map->indir_qp' is allocated through > kzalloc(). After that, mlx4_qp_alloc() is invoked to configure RSS > indirection. However, if mlx4_qp_alloc() fails, the allocated > 'rss_map->indir_qp' is not deallocated, leadin

[PATCH -next] ASoC: mediatek: mt8183-da7219-max98357: remove unused variable

2019-08-13 Thread YueHaibing
sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c:120:1: warning: mt8183_da7219_max98357_dapm_widgets defined but not used [-Wunused-const-variable=] sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c:124:40: warning: mt8183_da7219_max98357_dapm_routes defined but not used [-Wunused-const-vari

[PATCH v1] rapidio: Make it dependent to DMADEVICES

2019-08-13 Thread Andy Shevchenko
DMADEVICES option depends on HAS_DMA, and this dependency is ignored when DMADEVICES is being selected. Replace 'select' by 'depends on' in Kconfig for RAPIDIO_DMA_ENGINE. Fixes: e42d98ebe7d7 ("rapidio: add DMA engine support for RIO data transfers") Cc: Alexandre Bounine Signed-off-by: Andy She

RE: [PATCH v3] PCI: hv: Detect and fix Hyper-V PCI domain number collision

2019-08-13 Thread Haiyang Zhang
> -Original Message- > From: Lorenzo Pieralisi > Sent: Tuesday, August 13, 2019 10:26 AM > To: Haiyang Zhang > Cc: sas...@kernel.org; bhelg...@google.com; linux- > hyp...@vger.kernel.org; linux-...@vger.kernel.org; KY Srinivasan > ; Stephen Hemminger ; > o...@aepfle.de; vkuznets ; linu

Re: linux-next: build failure after merge of the rcu tree

2019-08-13 Thread Paul E. McKenney
On Tue, Aug 13, 2019 at 03:25:11PM +1000, Stephen Rothwell wrote: > Hi Paul, > > On Mon, 12 Aug 2019 09:19:34 -0700 "Paul E. McKenney" > wrote: > > > > Huh. "It has been building fine for me." I added > > > > #include > > #include > > > > to include/linux/rcu_segcblist.h, which hop

<    3   4   5   6   7   8   9   10   11   12   >