[PATCH v1 00/25] lib, rtc: Print rtc_time via %pt[dt][rv]

2017-06-08 Thread Andy Shevchenko
Recently I have noticed too many users of struct rtc_time that printing its content field by field. In this series I introduce %pt[dt][rv] specifier to make life a bit easier. There are still users of detailed output of the struct rtc_time, but we can introduce an additional extension for them in

[PATCH v2] xen: avoid deadlock in xenbus driver

2017-06-08 Thread Juergen Gross
There has been a report about a deadlock in the xenbus driver: [ 247.979498] == [ 247.985688] WARNING: possible circular locking dependency detected [ 247.991882] 4.12.0-rc4-00022-gc4b25c0 #575 Not tainted [ 247.997040] --

[PATCH 02/23] security: use READ_ONCE instead of deprecated ACCESS_ONCE

2017-06-08 Thread David Howells
From: Davidlohr Bueso With the new standardized functions, we can replace all ACCESS_ONCE() calls across relevant security/keyrings/. ACCESS_ONCE() does not work reliably on non-scalar types. For example gcc 4.6 and 4.7 might remove the volatile tag for such accesses during the SRA (scalar repla

Re: Crypto Fixes for 4.12

2017-06-08 Thread David Miller
From: Herbert Xu Date: Thu, 8 Jun 2017 17:23:21 +0800 > This push fixes a couple of places in the crypto code that were > doing interruptible sleeps dangerously. They have been converted > to use non-interruptible sleeps. This push also fixes a bug in > asymmetric_keys where it would trigger a

Re: [PATCH] Fix loop device flush before configure v3

2017-06-08 Thread Jens Axboe
On 06/08/2017 12:52 AM, James Wang wrote: > While installing SLES-12 (based on v4.4), I found that the installer > will stall for 60+ seconds during LVM disk scan. The root cause was > determined to be the removal of a bound device check in loop_flush() > by commit b5dd2f6047ca ("block: loop: impr

Re: [PATCH] pinctrl: meson-gxl: add tsin_a pins

2017-06-08 Thread Jerome Brunet
On Thu, 2017-06-08 at 15:58 +0200, Andreas Färber wrote: > Am 08.06.2017 um 15:53 schrieb Jerome Brunet: > > On Thu, 2017-06-08 at 15:49 +0200, Andreas Färber wrote: > > > Am 08.06.2017 um 15:09 schrieb Jerome Brunet: > > > > Add Tsin A pins to bank DV and X. > > > > We don't have a driver for the

Re: [PATCH] xen: avoid deadlock in xenbus driver

2017-06-08 Thread Andre Przywara
Hi Jürgen, On 08/06/17 15:00, Juergen Gross wrote: > On 07/06/17 18:24, Juergen Gross wrote: >> There has been a report about a deadlock in the xenbus driver: >> >> [ 247.979498] == >> [ 247.985688] WARNING: possible circular locking dependency

Re: [PATCH 6/7] pktcdvd: use class_groups instead of class_attrs

2017-06-08 Thread Jens Axboe
On 06/08/2017 02:12 AM, Greg Kroah-Hartman wrote: > The class_attrs pointer is long depreciated, and is about to be finally > removed, so move to use the class_groups pointer instead. Feel free to add my Acked-by to this. -- Jens Axboe

Re: [PATCH v5 1/6] asm-generic/bug.h: declare struct pt_regs; before function prototype

2017-06-08 Thread Steven Rostedt
On Thu, 25 May 2017 13:03:11 +0100 Ian Abbott wrote: > The declaration of `__warn()` has `struct pt_regs *regs` as one of its > parameters. This can result in compiler warnings if `struct regs` is > not already declared. Add an empty declaration of `struct pt_regs` to > avoid the warnings. >

Re: [PATCH 05/20] arm64: rename COMPAT to AARCH32_EL0 in Kconfig

2017-06-08 Thread Catalin Marinas
On Sun, Jun 04, 2017 at 02:59:54PM +0300, Yury Norov wrote: > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -402,7 +402,7 @@ config ARM64_ERRATUM_834220 > > config ARM64_ERRATUM_845719 > bool "Cortex-A53: 845719: a load might read incorrect data" > - depends on COMPAT > +

Re: [PATCHv7 04/14] x86/boot/efi: Fix __KERNEL_CS definition of GDT entry on 64-bit configuration

2017-06-08 Thread Matt Fleming
On Tue, 06 Jun, at 02:31:23PM, Kirill A. Shutemov wrote: > Define __KERNEL_CS GDT entry as long mode (.L=1, .D=0) on 64-bit > configuration. > > Signed-off-by: Kirill A. Shutemov > Cc: Matt Fleming > --- > arch/x86/boot/compressed/eboot.c | 9 +++-- > 1 file changed, 7 insertions(+), 2 dele

Re: [PATCH] IB/core: fix semicolon.cocci warnings

2017-06-08 Thread Matan Barak
On Wed, Jun 7, 2017 at 11:26 PM, Julia Lawall wrote: > Remove unneeded semicolon. > > Generated by: scripts/coccinelle/misc/semicolon.cocci Thanks. I'll fix this in the next version of this series.

Re: [PATCH 13/20] arm64: ilp32: share aarch32 syscall handlers

2017-06-08 Thread Catalin Marinas
On Sun, Jun 04, 2017 at 03:00:02PM +0300, Yury Norov wrote: > off_t is passed in register pair just like in aarch32. > In this patch corresponding aarch32 handlers are shared to > ilp32 code. Is the comment here relevant? IOW, do we have any AArch64/ILP32 syscall where off_t is used as an argumen

Re: [PATCH v2] mfd: tps65217: Introduce dependency on CONFIG_OF

2017-06-08 Thread Javier Martinez Canillas
On Thu, Jun 8, 2017 at 3:32 PM, Enric Balletbo Serra wrote: > Hi Keerthy: > > 2017-06-08 12:46 GMT+02:00 Keerthy : >> Currently the driver boots only via device tree hence add a >> dependency on CONFIG_OF. This leaves with a bunch of unused code >> so clean that up. >> >> Signed-off-by: Keerthy >

[PATCH v10 1/3] DT add arctic to vendor prefix for ArcticSand

2017-06-08 Thread Olimpiu Dejeu
dt-bindings: vendor-prefixes: add arctic to vendor prefix Acked-by: Rob Herring Reviewed-by: Jingoo Han Signed-off-by: Olimpiu Dejeu --- v9 => v10: - (Re-submit) Per Rob Herring's request changed vendor-prefix to arctic v8 => v9: - Version updated to match other patch in set. No other changes.

Re: [Question or BUG] [NUMA]: I feel puzzled at the function cpumask_of_node

2017-06-08 Thread Michal Hocko
[CC linux-api] On Wed 07-06-17 17:23:20, Leizhen (ThunderTown) wrote: > When I executed numactl -H(print cpumask_of_node for each node), I got > different result on X86 and ARM64. For each numa node, the former > only displayed online CPUs, and the latter displayed all possible > CPUs. Actually,

Re: mm, something wring in page_lock_anon_vma_read()?

2017-06-08 Thread zhong jiang
On 2017/6/8 21:59, Vlastimil Babka wrote: > On 06/08/2017 03:44 PM, Xishi Qiu wrote: >> On 2017/5/23 17:33, Vlastimil Babka wrote: >> >>> On 05/23/2017 11:21 AM, zhong jiang wrote: On 2017/5/23 0:51, Vlastimil Babka wrote: > On 05/20/2017 05:01 AM, zhong jiang wrote: >> On 2017/5/20 10

Re: [PATCH v5] fpga manager: Add Altera CvP driver

2017-06-08 Thread Anatolij Gustschin
On Thu, 8 Jun 2017 02:38:55 +0300 Andy Shevchenko andy.shevche...@gmail.com wrote: >On Thu, Jun 8, 2017 at 2:09 AM, Anatolij Gustschin wrote: >> On Fri, 2 Jun 2017 20:43:21 +0300 >> Andy Shevchenko andy.shevche...@gmail.com wrote: > >Besides below comments, please, do > >s/VSEC_/VSE_/g > >for e

Re: [PATCH v2 09/11] gpio: dt-bindings: Add documentation for gpio controllers on Armada 7K/8K

2017-06-08 Thread Rob Herring
On Fri, Jun 02, 2017 at 04:23:16PM +0200, Gregory CLEMENT wrote: > Document the device tree binding for the gpio controllers found on the > Marvell Armada 7K and Armada 8K SoCs. > > Signed-off-by: Gregory CLEMENT > --- > Documentation/devicetree/bindings/arm/marvell/ap806-system-controller.txt

Circular debugging using ptrace results in deadlock due to race condition?

2017-06-08 Thread Ilja Nevolin
Hi guys, As part of my master's thesis I am facing a challenging problem. I am trying to let two processes be each other's debuggers using the ptrace syscall. However, my proof-of-concept implementation always results in a deadlock state (both processes get stuck in 't+' state as shown by

Re: [PATCHv7 05/14] x86/boot/efi: Define __KERNEL32_CS GDT on 64-bit configurations

2017-06-08 Thread Matt Fleming
On Tue, 06 Jun, at 02:31:24PM, Kirill A. Shutemov wrote: > We would need to switch temporarily to compatibility mode during booting > with 5-level paging enabled. It would require 32-bit code segment > descriptor. > > Signed-off-by: Kirill A. Shutemov > Cc: Matt Fleming > --- > arch/x86/boot/co

[PATCHv2] clk: socfpga: Fix the smplsel on Arria10 and Stratix10

2017-06-08 Thread Dinh Nguyen
The smplsel bits for the SDMMC clock on Arria10 and Stratix10 platforms are offset by 1 additional bit. Add a new macro SYSMGR_SDMMC_CTRL_SET_AS10 for usage on the Arria10 and Stratix10 platforms. Fixes: 5611a5ba8e54 ("clk: socfpga: update clk.h so for Arria10 platform to use") Signed-off-by: Di

Re: [PATCH] x86/efi: fix boot panic because of invalid bgrt image address

2017-06-08 Thread Dave Young
On 06/08/17 at 10:02am, Ard Biesheuvel wrote: > On 8 June 2017 at 05:32, Dave Young wrote: > > Maniaxx reported kernel boot panic similar to > > below: > > (emulated the panic with using same invalid phys addr in a uefi vm) > > There are also a bug in bugzilla.kernel.org: > > https://bugzilla.ke

Re: clean up and modularize arch dma_mapping interface

2017-06-08 Thread David Miller
From: Christoph Hellwig Date: Thu, 8 Jun 2017 15:25:25 +0200 > for a while we have a generic implementation of the dma mapping routines > that call into per-arch or per-device operations. But right now there > still are various bits in the interfaces where don't clearly operate > on these ops.

Re: [PATCH 02/44] ibmveth: properly unwind on init errors

2017-06-08 Thread David Miller
From: Christoph Hellwig Date: Thu, 8 Jun 2017 15:25:27 +0200 > That way the driver doesn't have to rely on DMA_ERROR_CODE, which > is not a public API and going away. > > Signed-off-by: Christoph Hellwig Acked-by: David S. Miller

Re: [PATCH 27/44] sparc: remove leon_dma_ops

2017-06-08 Thread David Miller
From: Christoph Hellwig Date: Thu, 8 Jun 2017 15:25:52 +0200 > We can just use pci32_dma_ops. > > Btw, given that leon is 32-bit and appears to be PCI based, do even need > the special case for it in get_arch_dma_ops at all? I would need to defer to the LEON developers on that, but they haven'

Re: [PATCH 28/44] sparc: remove arch specific dma_supported implementations

2017-06-08 Thread Julian Calaby
Hi Christoph, On Thu, Jun 8, 2017 at 11:25 PM, Christoph Hellwig wrote: > Usually dma_supported decisions are done by the dma_map_ops instance. > Switch sparc to that model by providing a ->dma_supported instance for > sbus that always returns false, and implementations tailored to the sun4u > an

Re: [PATCH 28/44] sparc: remove arch specific dma_supported implementations

2017-06-08 Thread David Miller
From: Christoph Hellwig Date: Thu, 8 Jun 2017 15:25:53 +0200 > Usually dma_supported decisions are done by the dma_map_ops instance. > Switch sparc to that model by providing a ->dma_supported instance for > sbus that always returns false, and implementations tailored to the sun4u > and sun4v ca

Re: [PATCH 20/44] sparc: implement ->mapping_error

2017-06-08 Thread David Miller
From: Christoph Hellwig Date: Thu, 8 Jun 2017 15:25:45 +0200 > DMA_ERROR_CODE is going to go away, so don't rely on it. > > Signed-off-by: Christoph Hellwig Acked-by: David S. Miller

Re: [PATCH] x86/efi: fix boot panic because of invalid bgrt image address

2017-06-08 Thread Ard Biesheuvel
On 8 June 2017 at 14:20, Dave Young wrote: > On 06/08/17 at 10:02am, Ard Biesheuvel wrote: >> On 8 June 2017 at 05:32, Dave Young wrote: >> > Maniaxx reported kernel boot panic similar to >> > below: >> > (emulated the panic with using same invalid phys addr in a uefi vm) >> > There are also a

Re: [PATCH v6 26/34] iommu/amd: Allow the AMD IOMMU to work with memory encryption

2017-06-08 Thread Tom Lendacky
On 6/7/2017 9:38 PM, Nick Sarnie wrote: On Wed, Jun 7, 2017 at 3:17 PM, Tom Lendacky wrote: The IOMMU is programmed with physical addresses for the various tables and buffers that are used to communicate between the device and the driver. When the driver allocates this memory it is encrypted. I

Re: [PATCH] HID: Replace semaphore driver_lock with mutex

2017-06-08 Thread Arnd Bergmann
On Thu, Jun 8, 2017 at 12:01 PM, Binoy Jayan wrote: > The semaphore 'driver_lock' is used as a simple mutex, so > it should be written as one. Semaphores are going away in the future. > > Signed-off-by: Binoy Jayan > --- > > This patch is part of a bigger effort to eliminate unwanted > semaphores

Re: [PATCH] x86/efi: fix boot panic because of invalid bgrt image address

2017-06-08 Thread Ard Biesheuvel
On 8 June 2017 at 14:24, Ard Biesheuvel wrote: > On 8 June 2017 at 14:20, Dave Young wrote: >> On 06/08/17 at 10:02am, Ard Biesheuvel wrote: >>> On 8 June 2017 at 05:32, Dave Young wrote: >>> > Maniaxx reported kernel boot panic similar to >>> > below: >>> > (emulated the panic with using same

Re: [PATCH 13/20] arm64: ilp32: share aarch32 syscall handlers

2017-06-08 Thread Arnd Bergmann
On Thu, Jun 8, 2017 at 4:10 PM, Catalin Marinas wrote: > On Sun, Jun 04, 2017 at 03:00:02PM +0300, Yury Norov wrote: >> off_t is passed in register pair just like in aarch32. >> In this patch corresponding aarch32 handlers are shared to >> ilp32 code. > > Is the comment here relevant? IOW, do we

[PATCH v7 00/10] staging: fsl-mc: move bus driver out of staging

2017-06-08 Thread laurentiu.tudor
From: Laurentiu Tudor Now that there is a functional ethernet driver probed on the mc bus this patch series requests that the fsl-mc bus driver be moved out of staging. The proposed destination for the bus driver is drivers/bus. Proposed location for global header files for fsl-mc and dpaa2 is t

[PATCH v7 04/10] staging: fsl-mc: drop a few useless #includes

2017-06-08 Thread laurentiu.tudor
From: Laurentiu Tudor Some #includes were needlessly done from header files. Drop them from there and update the only .c file that implicitly needed one of those #includes. Signed-off-by: Laurentiu Tudor --- Notes: -v7 -rewrapped commit message drivers/staging/fsl-mc/bus/fsl-mc-msi

[PATCH v7 05/10] staging: fsl-mc: remove extra blank line

2017-06-08 Thread laurentiu.tudor
From: Laurentiu Tudor Remove extra blank line reported by checkpatch.pl. Signed-off-by: Laurentiu Tudor --- Notes: -v7 -no changes drivers/staging/fsl-mc/include/dprc.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/fsl-mc/include/dprc.h b/drivers/staging/fsl-m

[PATCH v7 08/10] staging: fsl-mc: drop reference to restool

2017-06-08 Thread laurentiu.tudor
From: Laurentiu Tudor Drop reference to user space restool utility from the README. It will be added back together with the actual support in the bus driver. Signed-off-by: Laurentiu Tudor --- Notes: -v7 -no changes drivers/staging/fsl-mc/README.txt | 4 +--- 1 file changed, 1 inse

[PATCH v7 09/10] staging: fsl-mc: add reference to mc-bus DT binding

2017-06-08 Thread laurentiu.tudor
From: Laurentiu Tudor Update README to reference the mc-bus device tree node binding. Signed-off-by: Laurentiu Tudor --- Notes: -v7 -rewrapped commit message drivers/staging/fsl-mc/README.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/fsl-mc/README.txt b

[PATCH v7 10/10] staging: fsl-mc: move bus driver out of staging

2017-06-08 Thread laurentiu.tudor
From: Stuart Yoder Move the source files out of staging into their final locations: -include files in drivers/staging/fsl-mc/include go to include/linux/fsl -irq-gic-v3-its-fsl-mc-msi.c goes to drivers/irqchip -source in drivers/staging/fsl-mc/bus goes to drivers/bus/fsl-mc -README.txt, p

[PATCH v7 01/10] staging: fsl-mc: enclose macro params in parens

2017-06-08 Thread laurentiu.tudor
From: Laurentiu Tudor Several macros didn't had macro params enclosed in parens. Fix them to avoid precedence issues. Found with checkpatch.pl who was issuing this message: "Macro argument 'id' may be better as '(id)' to avoid precedence issues" Signed-off-by: Laurentiu Tudor --- Note

[PATCH v7 07/10] staging: fsl-mc: add binding path to MAINTAINERS

2017-06-08 Thread laurentiu.tudor
From: Laurentiu Tudor The mc bus device tree binding is maintained but not mentioned in the MAINTAINERS file. This patch adds it. Signed-off-by: Laurentiu Tudor --- Notes: -v7 -rewrapped commit message -v2 -added commit description MAINTAINERS | 1 + 1 file changed, 1 ins

[PATCH v7 06/10] staging: fsl-mc: drop unused forward declaration

2017-06-08 Thread laurentiu.tudor
From: Laurentiu Tudor This forward declaration of "struct fsl_mc_resource" is of no use so drop it. Signed-off-by: Laurentiu Tudor --- Notes: -v7 -rewrapped commit message drivers/staging/fsl-mc/include/mc-sys.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/fsl

[PATCH v7 03/10] staging: fsl-mc: simplify couple of deallocations

2017-06-08 Thread laurentiu.tudor
From: Laurentiu Tudor Simplify a couple of deallocations code paths. This also fixes these checkpatch.pl false positives: "WARNING: kfree(NULL) is safe and this check is probably not required" Signed-off-by: Laurentiu Tudor --- Notes: -v7 -rewrapped commit message drivers/staging/

[PATCH v7 02/10] staging: fsl-mc: fix macros with possible side effects

2017-06-08 Thread laurentiu.tudor
From: Laurentiu Tudor Several macros were triggering this checkpatch.pl warning: "Macro argument reuse '$arg' - possible side-effects?" Fix the warning by avoiding multiple macro argument use. Signed-off-by: Laurentiu Tudor --- Notes: -v7 -no changes drivers/staging/fsl-mc/bus/dp

Re: [PATCH 00/23] KEYS: Fixes

2017-06-08 Thread James Morris
On Thu, 8 Jun 2017, David Howells wrote: > Note that I rebased the patches on top of -rc4 to avoid problems with a tty > locking bug encountered whilst trying to test it. This is for current Linus, correct? -- James Morris

Re: [PATCH] perf, tools, script: Allow adding and removing fields

2017-06-08 Thread Arnaldo Carvalho de Melo
Em Fri, Jun 02, 2017 at 08:48:10AM -0700, Andi Kleen escreveu: > From: Andi Kleen > > With perf script it is common that we just want to add or remove a field. > Currently this requires figuring out the long list of default fields and > specifying them first, and then adding/removing the new fiel

Re: [PATCH] arm: aspeed: Add clock-names property to timer node

2017-06-08 Thread Arnd Bergmann
On Thu, Jun 8, 2017 at 3:26 PM, Daniel Lezcano wrote: > On Wed, Jun 07, 2017 at 04:29:50PM +0200, Arnd Bergmann wrote: >> On Wed, Jun 7, 2017 at 2:52 PM, Daniel Lezcano >> wrote: >> > On Tue, Jun 06, 2017 at 11:41:11AM +0200, Arnd Bergmann wrote: >> >> On Mon, Jun 5, 2017 at 10:59 AM, Joel Stanle

Re: [GIT PULL 0/7] perf/urgent callchain fixes

2017-06-08 Thread Milian Wolff
On Thursday, June 8, 2017 3:59:31 PM CEST Arnaldo Carvalho de Melo wrote: > Em Thu, Jun 08, 2017 at 03:15:32PM +0200, Milian Wolff escreveu: > > On Wednesday, May 24, 2017 8:21:22 AM CEST Namhyung Kim wrote: > > > Hi Ingo, > > > > > > Please consider pulling the perf tooling changes below. Build

Re: [PATCH] regmap: make LZO cache optional

2017-06-08 Thread Andreas Ziegler
Hi Jonas, I noticed your patch 'regmap: make LZO cache optional' as it recently showed up in linux-next. In your patch, you modify drivers/base/regmap/regcache.c by adding an #if IS_ENABLED() statement. However, this statement contains a spelling error, as it references REGCHACHE_COMPRESSED inste

Re: [RFC PATCH 2/2] mm, oom: do not trigger out_of_memory from the #PF

2017-06-08 Thread Michal Hocko
Does anybody see any problem with the patch or I can send it for the inclusion? On Fri 19-05-17 13:26:04, Michal Hocko wrote: > From: Michal Hocko > > Any allocation failure during the #PF path will return with VM_FAULT_OOM > which in turn results in pagefault_out_of_memory. This can happen for

Re: CPU_BIG_ENDIAN in generic code

2017-06-08 Thread Arnd Bergmann
On Thu, Jun 8, 2017 at 4:02 PM, David Miller wrote: > From: Arnd Bergmann > Date: Thu, 8 Jun 2017 10:01:59 +0200 > >> I would also suggest adding a sanity check like > > Hmm, but this will kill the build for non-fixed endian architectures > won't it? I think only xtensa, all others already defin

Re: [PATCH v3 1/3] dt-bindings: mediatek: add bindings for MediaTek MT7622 SoC

2017-06-08 Thread Matthias Brugger
On 07/06/17 23:30, Rob Herring wrote: On Thu, Jun 01, 2017 at 01:28:59AM +0800, sean.w...@mediatek.com wrote: From: Sean Wang This adds dt-binding documentation for MediaTek MT7622 SoC which currently only includes basic items such as ARM CPU, MediaTek SYSIRQ and UART. Signed-off-by: Sean W

Re: [PATCH v2] decnet: dn_rtmsg: Improve input length sanitization in dnrmg_receive_user_skb

2017-06-08 Thread David Miller
From: Mateusz Jurczyk Date: Wed, 7 Jun 2017 16:41:57 +0200 > On Wed, Jun 7, 2017 at 4:18 PM, Florian Westphal wrote: >> Mateusz Jurczyk wrote: >>> Verify that the length of the socket buffer is sufficient to cover the >>> nlmsghdr structure before accessing the nlh->nlmsg_len field for further

[PATCH] perf/x86/intel/cqm: Start MBM timers only for MBM events

2017-06-08 Thread Jiri Olsa
Currently start MBM timers for the first event of any kind, though they are not needed for occupancy event. Adding check to ensure the MBM timers are started only for MBM events. Cc: Peter Zijlstra Cc: Peter Zijlstra Cc: Vikas Shivappa Cc: Tony Luck Signed-off-by: Jiri Olsa --- arch/x86/eve

Re: [PATCH 25/44] arm: implement ->mapping_error

2017-06-08 Thread Russell King - ARM Linux
BOn Thu, Jun 08, 2017 at 03:25:50PM +0200, Christoph Hellwig wrote: > +static int dmabounce_mapping_error(struct device *dev, dma_addr_t dma_addr) > +{ > + if (dev->archdata.dmabounce) > + return 0; I'm not convinced that we need this check here: dev->archdata.dmabounce =

Re: [PATCH v5] fpga manager: Add Altera CvP driver

2017-06-08 Thread Andy Shevchenko
On Thu, Jun 8, 2017 at 5:15 PM, Anatolij Gustschin wrote: > On Thu, 8 Jun 2017 02:38:55 +0300 > Andy Shevchenko andy.shevche...@gmail.com wrote: >>On Thu, Jun 8, 2017 at 2:09 AM, Anatolij Gustschin wrote: >>> On Fri, 2 Jun 2017 20:43:21 +0300 >>> Andy Shevchenko andy.shevche...@gmail.com wrote:

[PATCH] regmap: Fix typo in IS_ENABLED() check

2017-06-08 Thread Mark Brown
Reported-by: Andreas Ziegler Signed-off-by: Mark Brown --- drivers/base/regmap/regcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c index f3a435ee5fe8..773560348337 100644 --- a/drivers/base/regmap/regcache

[PATCH] regmap: Fix typo in IS_ENABLED() check

2017-06-08 Thread Mark Brown
Reported-by: Andreas Ziegler Signed-off-by: Mark Brown --- drivers/base/regmap/regcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c index f3a435ee5fe8..773560348337 100644 --- a/drivers/base/regmap/regcache

Applied "regmap: Fix typo in IS_ENABLED() check" to the regmap tree

2017-06-08 Thread Mark Brown
The patch regmap: Fix typo in IS_ENABLED() check has been applied to the regmap tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus

Admin

2017-06-08 Thread Sistem Administrator
PERHATIAN Kotak surat Anda telah melebihi batas penyimpanan, yaitu 5 GB seperti yang didefinisikan oleh administrator, yang saat ini berjalan pada 10.9GB, Anda mungkin tidak dapat mengirim atau menerima surat baru sampai Anda kembali memvalidasi email mailbox Anda. Untuk memvalidasi ulang kotak

Re: [PATCH 3/3] bitmap: Use memcmp optimisation in more situations

2017-06-08 Thread Andy Shevchenko
On Thu, Jun 8, 2017 at 4:43 PM, Rasmus Villemoes wrote: > On 8 June 2017 at 14:31, Andy Shevchenko wrote: >> On Thu, Jun 8, 2017 at 5:55 AM, Matthew Wilcox wrote: >>> We only need to know if the bottom 3 bits are 0 to apply this optimisation. >>> For example, if we have a user which does this: >

Re: Sleeping BUG in khugepaged for i586

2017-06-08 Thread Michal Hocko
On Wed 07-06-17 13:56:01, David Rientjes wrote: > On Wed, 7 Jun 2017, Vlastimil Babka wrote: > > > >> Hmm I'd expect such spin lock to be reported together with mmap_sem in > > >> the debugging "locks held" message? > > > > > > My bisection of the problem is about half done. My latest good versio

Re: [PATCH v1 04/25] lib/vsprintf: Print time and date in human readable format via %pt

2017-06-08 Thread Arnd Bergmann
On Thu, Jun 8, 2017 at 3:47 PM, Andy Shevchenko wrote: > There are users which print time and date represented by content of > struct rtc_time in human readable format. > > Instead of open coding that each time introduce %pt[dt][rv] specifier. I really like the idea, and the implementation seems

Re: [PATCH 00/23] KEYS: Fixes

2017-06-08 Thread David Howells
James Morris wrote: > > Note that I rebased the patches on top of -rc4 to avoid problems with a tty > > locking bug encountered whilst trying to test it. > > This is for current Linus, correct? Yes please. David

Re: [PATCH] platform/x86/acer-wmi: Detect RF Button capability

2017-06-08 Thread joeyli
On Tue, Jun 06, 2017 at 01:07:22PM -0700, João Paulo Rechi Vita wrote: > If a machine reports a RF Button in the communication button device > bitmap, we need to remove it before calling Get Device Status otherwise > it will return the "Undefined device" (0xE2) error code. > > Although this may be

Re: [PATCH v1 00/25] lib, rtc: Print rtc_time via %pt[dt][rv]

2017-06-08 Thread Joe Perches
On Thu, 2017-06-08 at 16:47 +0300, Andy Shevchenko wrote: > Recently I have noticed too many users of struct rtc_time that printing > its content field by field. > > In this series I introduce %pt[dt][rv] specifier to make life a bit > easier. > > There are still users of detailed output of the s

Re: [RFC PATCH net-next 2/5] bpf/verifier: rework value tracking

2017-06-08 Thread Edward Cree
On 08/06/17 03:32, Alexei Starovoitov wrote: > On Wed, Jun 07, 2017 at 03:58:31PM +0100, Edward Cree wrote: >> +/* Arithmetic and logical ops */ >> +/* Shift a tnum left (by a fixed shift) */ >> +struct tnum tn_sl(struct tnum a, u8 shift); >> +/* Shift a tnum right (by a fixed shift) */ >> +struct

Re: [PATCH v1 04/25] lib/vsprintf: Print time and date in human readable format via %pt

2017-06-08 Thread Andy Shevchenko
On Thu, Jun 8, 2017 at 5:49 PM, Arnd Bergmann wrote: > On Thu, Jun 8, 2017 at 3:47 PM, Andy Shevchenko > wrote: >> There are users which print time and date represented by content of >> struct rtc_time in human readable format. >> >> Instead of open coding that each time introduce %pt[dt][rv] spe

Re: [PATCH] mwifiex: Replace semaphore async_sem with mutex

2017-06-08 Thread Arnd Bergmann
On Thu, Jun 8, 2017 at 12:03 PM, Binoy Jayan wrote: > The semaphore 'async_sem' is used as a simple mutex, so > it should be written as one. Semaphores are going away in the future. > > Signed-off-by: Binoy Jayan > --- > > This patch is part of a bigger effort to eliminate unwanted > semaphores f

Re: [PATCH] net: ethernet: micrel: ksz884x: Replace semaphore proc_sem with mutex

2017-06-08 Thread Arnd Bergmann
On Thu, Jun 8, 2017 at 12:03 PM, Binoy Jayan wrote: > The semaphore 'proc_sem' is used as a simple mutex, so > it should be written as one. Semaphores are going away in the future. > > Signed-off-by: Binoy Jayan > --- > > This patch is part of a bigger effort to eliminate unwanted > semaphores fr

Re: [PATCH v5] fpga manager: Add Altera CvP driver

2017-06-08 Thread Anatolij Gustschin
On Thu, 8 Jun 2017 17:44:19 +0300 Andy Shevchenko andy.shevche...@gmail.com wrote: >On Thu, Jun 8, 2017 at 5:15 PM, Anatolij Gustschin wrote: >> On Thu, 8 Jun 2017 02:38:55 +0300 >> Andy Shevchenko andy.shevche...@gmail.com wrote: >>>On Thu, Jun 8, 2017 at 2:09 AM, Anatolij Gustschin wrote:

Re: [PATCH v1 00/25] lib, rtc: Print rtc_time via %pt[dt][rv]

2017-06-08 Thread Andy Shevchenko
On Thu, Jun 8, 2017 at 5:52 PM, Joe Perches wrote: > On Thu, 2017-06-08 at 16:47 +0300, Andy Shevchenko wrote: >> Recently I have noticed too many users of struct rtc_time that printing >> its content field by field. >> >> In this series I introduce %pt[dt][rv] specifier to make life a bit >> easi

Re: [PATCH 0/2] esas2r: Replace semaphores with mutexes

2017-06-08 Thread Arnd Bergmann
On Thu, Jun 8, 2017 at 12:07 PM, Binoy Jayan wrote: > These are a set of patches which removes semaphores from esas2r. > These are part of a bigger effort to eliminate unwanted semaphores > from the linux kernel. > > Binoy Jayan (2): > scsi: esas2r: Replace semaphore fm_api_semaphore with mutex

Re: [PATCH v1 04/25] lib/vsprintf: Print time and date in human readable format via %pt

2017-06-08 Thread Alexandre Belloni
On 08/06/2017 at 17:55:12 +0300, Andy Shevchenko wrote: > On Thu, Jun 8, 2017 at 5:49 PM, Arnd Bergmann wrote: > > On Thu, Jun 8, 2017 at 3:47 PM, Andy Shevchenko > > wrote: > >> There are users which print time and date represented by content of > >> struct rtc_time in human readable format. > >

Re: [PATCH 14/20] arm64: ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2017-06-08 Thread James Morse
Hi Yury, On 04/06/17 13:00, Yury Norov wrote: > From: Andrew Pinski > > Add a separate syscall-table for ILP32, which dispatches either to native > LP64 system call implementation or to compat-syscalls, as appropriate. (I'm still reading through this series trying to understand it, but spotted

Re: [PATCH v2 3/6] irqchip: irq-mvebu-gicp: new driver for Marvell GICP

2017-06-08 Thread Marc Zyngier
Hi Thomas, On 02/06/17 11:06, Thomas Petazzoni wrote: > This commit adds a simple driver for the Marvell GICP, a hardware unit > that converts memory writes into GIC SPI interrupts. The driver provides > a number of functions to the ICU driver to allocate GICP interrupts, and > get the physical ad

Re: [PATCH 02/20] 32-bit ABI: introduce ARCH_32BIT_OFF_T config option

2017-06-08 Thread Catalin Marinas
On Sun, Jun 04, 2017 at 02:59:51PM +0300, Yury Norov wrote: > All new 32-bit architectures should have 64-bit off_t type, but existing > architectures has 32-bit ones. > > To handle it, new config option is added to arch/Kconfig that defaults > ARCH_32BIT_OFF_T to be disabled for non-64 bit archit

Re: [PATCH v6 10/10] nvme: use ctrl->device consistently for logging

2017-06-08 Thread kbuild test robot
Hi Johannes, [auto build test ERROR on block/for-next] [also build test ERROR on v4.12-rc4 next-20170608] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Johannes-Thumshirn/Implement-NVMe

Re: [PATCH 1/3] media: ngene: Replace semaphore cmd_mutex with mutex

2017-06-08 Thread Arnd Bergmann
On Thu, Jun 8, 2017 at 12:04 PM, Binoy Jayan wrote: > The semaphore 'cmd_mutex' is used as a simple mutex, so > it should be written as one. Semaphores are going away in the future. > > Signed-off-by: Binoy Jayan > --- > @@ -1283,7 +1283,7 @@ static int ngene_load_firm(struct ngene *dev) > > st

net/can: trying to register non-static key in can_rx_register

2017-06-08 Thread Andrey Konovalov
Hi, I've got the following error report while fuzzing the kernel with syzkaller. On commit b29794ec95c6856b316c2295904208bf11ffddd9 (4.12-rc4+). INFO: trying to register non-static key. the code is fine but needs lockdep annotation. turning off the locking correctness validator. CPU: 2 PID: 1740

Re: [PATCH] platform/x86: wmi: Fix printing info about WDG structure

2017-06-08 Thread Darren Hart
On Sat, May 27, 2017 at 11:49:22PM +0300, Andy Shevchenko wrote: > On Sat, May 27, 2017 at 11:48 PM, Pali Rohár wrote: > > On Saturday 27 May 2017 15:33:14 Andy Shevchenko wrote: > >> On Sat, May 27, 2017 at 4:17 PM, Pali Rohár > >> wrote: > > >> Okay, got it. But on your opinion does it make se

Re: [PATCH 3/3] media: ngene: Replace semaphore i2c_switch_mutex with mutex

2017-06-08 Thread Arnd Bergmann
On Thu, Jun 8, 2017 at 12:04 PM, Binoy Jayan wrote: > The semaphore 'i2c_switch_mutex' is used as a simple mutex, so > it should be written as one. Semaphores are going away in the future. > > Signed-off-by: Binoy Jayan This one is obviously correct, Reviewed-by: Arnd Bergmann

Re: [PATCH blktests] loop/002: Regression testing for loop device flush

2017-06-08 Thread Jens Axboe
On 06/08/2017 06:28 AM, James Wang wrote: > Add a regression testing for loop device. when an unbound device > be close that take too long time. kernel will consume serveral orders > of magnitude more wall time than it does for a mounted device. Thanks a lot for taking the time to turn this into a

Re: [PATCH 2/3] media: ngene: Replace semaphore stream_mutex with mutex

2017-06-08 Thread Arnd Bergmann
On Thu, Jun 8, 2017 at 12:04 PM, Binoy Jayan wrote: > The semaphore 'stream_mutex' is used as a simple mutex, so > it should be written as one. Semaphores are going away in the future. > > Signed-off-by: Binoy Jayan > --- Looks correct, though I wonder whether it would be nicer to move the mutex

[PATCH 00/11] plat-eznps upstream cont. set 2

2017-06-08 Thread Noam Camus
From: Noam Camus With this patch set I continue the effort of upstreaming the eznps platform for arch/arc. It comprise of couple of patches from last set yet not accepted, patches for HW erratas and some misc extensions such for HIGHMEM / NUMA. This set got more generic ARC changes than previo

Re: net/can: trying to register non-static key in can_rx_register

2017-06-08 Thread Marc Kleine-Budde
On 06/08/2017 05:16 PM, Andrey Konovalov wrote: > Hi, > > I've got the following error report while fuzzing the kernel with syzkaller. > > On commit b29794ec95c6856b316c2295904208bf11ffddd9 (4.12-rc4+). > > INFO: trying to register non-static key. > the code is fine but needs lockdep annotation.

[PATCH 02/11] ARC: send ipi to all cpus sharing task mm in case of page fault

2017-06-08 Thread Noam Camus
From: Noam Camus This patch is derived due to performance issue. The use case is a page fault that resides on more than the local cpu. Trying to broadcast all CPUs results on performance degradation. So we try to avoid this by sending only to the relevant CPUs. Signed-off-by: Noam Camus Reviewe

[PATCH 06/11] ARC: [NUMA] added CONFIG_NUMA for plat-eznps

2017-06-08 Thread Noam Camus
From: Noam Camus This is needed for NPS400 where high memory is assigned to node1 where the associated addresses are lower than node0. This use case is not typical and just using discontigmem is not enough since nodes assumed to have increasing address range. i.e. address range of node0 assumed t

Re: net/can: trying to register non-static key in can_rx_register

2017-06-08 Thread Andrey Konovalov
On Thu, Jun 8, 2017 at 5:20 PM, Marc Kleine-Budde wrote: > On 06/08/2017 05:16 PM, Andrey Konovalov wrote: >> Hi, >> >> I've got the following error report while fuzzing the kernel with syzkaller. >> >> On commit b29794ec95c6856b316c2295904208bf11ffddd9 (4.12-rc4+). >> >> INFO: trying to register

[PATCH 05/11] ARC: Support more than one PGDIR for KVADDR

2017-06-08 Thread Noam Camus
From: Noam Camus This way FIXMAP can have 2 PTEs per CPU even for NR_CPUS=4096 For the extreme case like in eznps platform We use all gutter between kernel and user. Signed-off-by: Noam Camus --- arch/arc/Kconfig | 11 +++ arch/arc/include/asm/highmem.h |8

[PATCH 04/11] ARC: Add CPU topology

2017-06-08 Thread Noam Camus
From: Noam Camus Now it is used for NPS SoC for multi-core of 256 cores and SMT of 16 HW threads per core. This way with topology the scheduler is much efficient in creating domains and later using them. Signed-off-by: Noam Camus --- arch/arc/Kconfig| 27 arch/arc/i

[PATCH 09/11] ARC: [plat-eznps] Save/Restore extra auxiliary registers

2017-06-08 Thread Noam Camus
From: Noam Camus thread_struct got new field for data plane of eznps platform. This field got place for data plane auxiliary registers and for any extra registers that might be changed in kernel code. We save EFLAGS, and GPA1 auxiliary registers since they may be changed by the new task while us

[PATCH 08/11] ARC: [plat-eznps] Update the init sequence of aux regs per cpu.

2017-06-08 Thread Noam Camus
From: Liav Rehana The following commit adds a config that will enable us to distinguish between building the kernel for platforms that have a different set of auxiliary registers for each cpu and platforms that have a shared set of auxiliary registers across every thread in each core. On platform

Re: [RFC PATCH net-next 4/5] bpf/verifier: track signed and unsigned min/max values

2017-06-08 Thread Edward Cree
On 08/06/17 03:40, Alexei Starovoitov wrote: > On Wed, Jun 07, 2017 at 03:59:25PM +0100, Edward Cree wrote: >> Allows us to, sometimes, combine information from a signed check of one >> bound and an unsigned check of the other. >> We now track the full range of possible values, rather than restric

[PATCH 11/11] ARC: [plat-eznps] avoid toggling of DPC register

2017-06-08 Thread Noam Camus
From: Elad Kanfi HW bug description: in case of HW thread context switch the dpc configuration of the exiting thread is dragged one cycle into the next thread. In order to avoid the consequences of this bug, the DPC register is set to an initial value, and not changed afterwards. Signed-off-by:

[PATCH 07/11] ARC: [plat-eznps] new command line argument for HW scheduler at MTM

2017-06-08 Thread Noam Camus
From: Noam Camus We add ability for all cores at NPS SoC to control the number of cycles HW thread can execute before it is replace with another eligible HW thread within the same core. The replacement is done by the HE scheduler. Signed-off-by: Noam Camus --- Documentation/admin-guide/kernel-

[PATCH 03/11] ARC: Allow irq threading

2017-06-08 Thread Noam Camus
From: Noam Camus Working with NPS400 we noticed that there is a possibility of L1 interrupt nesting that may run out kernel stack. The scenario include serving invoke_softirqs() from irq_exit() and once local_irq_enable() called can hit another one before we managed to restore last one and pop so

[PATCH 10/11] ARC: [plat-eznps] handle dedicated AUX registers

2017-06-08 Thread Noam Camus
From: Liav Rehana Preserve eflags and gpa1 auxiliaries during exception Registers used by compare exchange instructions. GPA1 is used for compare value, and EFLAGS got bit reflects atomic operation response. EFLAGS is zeroed for each new user task so it won't get its parent value. Signed-off-by

[PATCH 01/11] ARC: set level of log per CPU during boot to be debug level

2017-06-08 Thread Noam Camus
From: Noam Camus The reasons are: 1) speeding up boot time, becomes critical for many CPUs machine, e.g. NPS400 with 4K CPUs 2) shorten kernel log at boot time, again easy to scan for large scale machines such NPS400 Signed-off-by: Noam Camus --- arch/arc/kernel/setup.c |6 +++--- ar

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