[PATCH 1/5] powerpc: mm: Simplify page_is_ram by using memblock_is_memory

2018-02-22 Thread Jonathan Neuschäfer
Instead of open-coding the search in page_is_ram, call memblock_is_memory. Signed-off-by: Jonathan Neuschäfer --- arch/powerpc/mm/mem.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c index fe8c61149fb8..da4e1555d61d 100644

[PATCH v3 1/5] linux/const.h: prefix include guard of uapi/linux/const.h with _UAPI

2018-02-22 Thread Masahiro Yamada
I am going to add include/linux/const.h for the kernel space. Add _UAPI to the include guard of include/uapi/linux/const.h to prepare for that. Please notice the guard name of the exported one will be kept as-is. So, this commit has no impact to the userspace even if some userspace stuff depends

[PATCH 3/5] powerpc/mm/32: Use page_is_ram to check for RAM

2018-02-22 Thread Jonathan Neuschäfer
Signed-off-by: Jonathan Neuschäfer --- arch/powerpc/mm/pgtable_32.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/powerpc/mm/pgtable_32.c b/arch/powerpc/mm/pgtable_32.c index d35d9ad3c1cd..d54e1a9c1c99 100644 --- a/arch/powerpc/mm/pgtable_32.c +++ b/arch/powerpc/mm/pg

[PATCH v3 2/5] m68k: rename UL() to TO_UL()

2018-02-22 Thread Masahiro Yamada
ARM, ARM64 and UniCore32 define UL(x) like follows: #define UL(x) _AC(x, UL) While, M68K defines it differently: #define UL(x) ((unsigned long) (x)) I want to move the former to a common header. Beforehand, this commit renames the latter to avoid name conflict. Signed-off-by: Masahiro Yamad

[PATCH v3 0/5] linux/const.h: cleanups of macros such as UL(), _BITUL(), BIT() etc.

2018-02-22 Thread Masahiro Yamada
ARM, ARM64, UniCore32 define UL() as a shorthand of _AC(..., UL). More architectures may introduce it in the future. UL() is arch-agnostic, and useful. So let's move it to include/linux/const.h Currently, must be included to use UL(). It pulls in more bloats just for defining some bit macros.

Re: [PATCH v3 2/2] ocxl: Document the OCXL_IOCTL_GET_METADATA IOCTL

2018-02-22 Thread Frederic Barrat
Le 22/02/2018 à 05:17, Alastair D'Silva a écrit : From: Alastair D'Silva Signed-off-by: Alastair D'Silva --- Acked-by: Frederic Barrat Documentation/accelerators/ocxl.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/accelerators/ocxl.rst b/Documentation/

[PATCH v3 3/5] linux/const.h: move UL() macro to include/linux/const.h

2018-02-22 Thread Masahiro Yamada
ARM, ARM64 and UniCore32 duplicate the definition of UL(): #define UL(x) _AC(x, UL) This is not actually arch-specific, so it will be useful to move it to a common header. Currently, we only have the uapi variant for linux/const.h, so I am creating include/linux/const.h. I also added _UL(), _

[PATCH v3 5/5] linux/const.h: move BIT(_ULL) to linux/const.h for use in assembly

2018-02-22 Thread Masahiro Yamada
Commit 2fc016c5bd8a ("linux/const.h: Add _BITUL() and _BITULL()") introduced _BITUL() and _BITULL(). Its git-log says the difference from the already existing BIT() are: 1. The namespace is such that they can be used in uapi definitions. 2. The type is set with the _AC() macro to allow it to

Re: [PATCH 2/3] mwifiex: support sysfs initiated device coredump

2018-02-22 Thread Arend van Spriel
On 2/21/2018 11:59 PM, Brian Norris wrote: On Wed, Feb 21, 2018 at 11:50:19AM +0100, Arend van Spriel wrote: Since commit 3c47d19ff4dc ("drivers: base: add coredump driver ops") it is possible to initiate a device coredump from user-space. This patch adds support for it adding the .coredump() dr

[PATCH v3 4/5] linux/const.h: refactor _BITUL and _BITULL a bit

2018-02-22 Thread Masahiro Yamada
Minor cleanups available by _UL and _ULL. Signed-off-by: Masahiro Yamada --- V2: https://patchwork.kernel.org/patch/9498269/ Changes in v3: None Changes in v2: None include/uapi/linux/const.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/const.h b/

[RFC PATCH] riscv/locking: Strengthen spin_lock() and spin_unlock()

2018-02-22 Thread Andrea Parri
The LKMM defines certain memory ordering constraints for spin_lock(), spin_unlock() and other primitives that the kernel developer can rely on; unfortunately, some of these constraints are not currently met by the RISC-V implementation of spin_lock(), spin_unlock(). The following MP-like program e

[PATCH 5/5] powerpc/mm/32: Remove the reserved memory hack

2018-02-22 Thread Jonathan Neuschäfer
This hack, introduced in commit c5df7f775148 ("powerpc: allow ioremap within reserved memory regions") is now unnecessary. Signed-off-by: Jonathan Neuschäfer --- arch/powerpc/mm/init_32.c| 5 - arch/powerpc/mm/mmu_decl.h | 1 - arch/powerpc/mm/pgtable_32.c | 3 +-- 3 files changed, 1 i

Re: [PATCH 01/20] lightnvm: simplify geometry structure.

2018-02-22 Thread Matias Bjørling
On 02/22/2018 08:44 AM, Javier Gonzalez wrote: On 22 Feb 2018, at 08.25, Matias Bjørling wrote: On 02/21/2018 10:26 AM, Javier González wrote: Currently, the device geometry is stored redundantly in the nvm_id and nvm_geo structures at a device level. Moreover, when instantiating targets on

Re: Use higher-order pages in vmalloc

2018-02-22 Thread Matthew Wilcox
On Thu, Feb 22, 2018 at 07:59:43AM +0100, Michal Hocko wrote: > On Wed 21-02-18 09:01:29, Matthew Wilcox wrote: > > Right. It helps with fragmentation if we can keep higher-order > > allocations together. > > Hmm, wouldn't it help if we made vmalloc pages migrateable instead? That > would help th

Re: [PATCH] perf: arm_spe: include linux/vmalloc.h for vmap()

2018-02-22 Thread Mark Rutland
On Thu, Feb 22, 2018 at 12:47:05PM +0100, Arnd Bergmann wrote: > On linux-next, I get a build failure in some configurations: > > drivers/perf/arm_spe_pmu.c: In function 'arm_spe_pmu_setup_aux': > drivers/perf/arm_spe_pmu.c:857:14: error: implicit declaration of function > 'vmap'; did you mean 's

Re: [PATCH 16/18] crypto: talitos - do hw_context DMA mapping outside the requests

2018-02-22 Thread Horia Geantă
On 2/22/2018 1:47 PM, Herbert Xu wrote: > On Tue, Feb 20, 2018 at 11:32:25AM +, Horia Geantă wrote: >> >> If final/finup is optional, how is the final hash supposed to be retrieved? > > Sometimes the computation ends with a partial hash, that's what > export is for. Also it is completely lega

[GIT PULL] Char/Misc driver fixes for 4.16-rc6

2018-02-22 Thread Greg KH
The following changes since commit 7928b2cbe55b2a410a0f5c1f154610059c57b1b2: Linux 4.16-rc1 (2018-02-11 15:04:29 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git/ tags/char-misc-4.16-rc3 for you to fetch changes up to 2a4ac17

[GIT PULL] Staging/IIO fixes for 4.16-rc3

2018-02-22 Thread Greg KH
The following changes since commit 7928b2cbe55b2a410a0f5c1f154610059c57b1b2: Linux 4.16-rc1 (2018-02-11 15:04:29 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git/ tags/staging-4.16-rc2 for you to fetch changes up to c6754712e05

[GIT PULL] Char/Misc driver fixes for 4.16-rc3

2018-02-22 Thread Greg KH
[resend with the correct kernel version in the subject line...] The following changes since commit 7928b2cbe55b2a410a0f5c1f154610059c57b1b2: Linux 4.16-rc1 (2018-02-11 15:04:29 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git/

[GIT PULL] USB fixes for 4.16-rc3

2018-02-22 Thread Greg KH
The following changes since commit 7928b2cbe55b2a410a0f5c1f154610059c57b1b2: Linux 4.16-rc1 (2018-02-11 15:04:29 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/ tags/usb-4.16-rc3 for you to fetch changes up to 44eb5e12b845cc8a063

Re: [PATCH v3 05/10] pwm: add PWM mode to pwm_config()

2018-02-22 Thread Daniel Thompson
On Thu, Feb 22, 2018 at 02:01:16PM +0200, Claudiu Beznea wrote: > Add PWM mode to pwm_config() function. The drivers which uses pwm_config() > were adapted to this change. > > Signed-off-by: Claudiu Beznea > --- > arch/arm/mach-s3c24xx/mach-rx1950.c | 11 +-- > drivers/bus/ts-nbus.c

Re: [PATCH v9 11/11] media: i2c: ov7670: Fully set mbus frame fmt

2018-02-22 Thread jacopo mondi
Hi Laurent, On Thu, Feb 22, 2018 at 02:14:53PM +0200, Laurent Pinchart wrote: > Hi Jacopo, > > On Thursday, 22 February 2018 14:04:12 EET jacopo mondi wrote: > > On Wed, Feb 21, 2018 at 10:28:06PM +0200, Laurent Pinchart wrote: > > > On Tuesday, 20 February 2018 10:58:57 EET jacopo mondi wrote: >

Re: [PATCH] MAINTAINERS: Update email address for Miquel Raynal

2018-02-22 Thread Boris Brezillon
On Mon, 19 Feb 2018 23:57:59 +0100 Miquel Raynal wrote: > Free Electrons is now Bootlin. Applied. Thanks, Boris > > Signed-off-by: Miquel Raynal > --- > .mailmap| 1 + > MAINTAINERS | 2 +- > 2 files changed, 2 insertions(+), 1 deletion(-) > > diff --git a/.mailmap b/.mailmap > index

Re: [PATCH] Update Boris Brezillon email address

2018-02-22 Thread Boris Brezillon
On Fri, 16 Feb 2018 11:44:49 +0100 Boris Brezillon wrote: > Free Electrons is now Bootlin. > > Signed-off-by: Boris Brezillon > --- > Note that I'm planning to take this patch through the MTD tree. Applied to the nand/next branch of the MTD tree. > --- > .mailmap| 7 --- > MAINTAINE

Re: [PATCH 0/2] I2C-Nomadik: Adjustments for nmk_i2c_probe()

2018-02-22 Thread Linus Walleij
On Fri, Feb 2, 2018 at 4:38 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Fri, 2 Feb 2018 16:34:56 +0100 > > Two update suggestions were taken into account > from static source code analysis. > > Markus Elfring (2): > Delete an error message for a failed memory allocation > Imp

Re: [PATCH v2 0/6] Initial Allwinner H6 support

2018-02-22 Thread Linus Walleij
On Sat, Feb 3, 2018 at 4:49 PM, Icenowy Zheng wrote: > This patchset adds initial support for the Allwinner H6 SoC. I see there are still a few comments from Maxime and André so I'm waiting for a new patch set. I need their ACKs to proceed. Yours, Linus Walleij

Re: [RFC PATCH] riscv/locking: Strengthen spin_lock() and spin_unlock()

2018-02-22 Thread Andrea Parri
On Thu, Feb 22, 2018 at 01:19:50PM +0100, Andrea Parri wrote: > The LKMM defines certain memory ordering constraints for spin_lock(), > spin_unlock() and other primitives that the kernel developer can rely > on; unfortunately, some of these constraints are not currently met by > the RISC-V implemen

Re: [PATCH v9 11/11] media: i2c: ov7670: Fully set mbus frame fmt

2018-02-22 Thread Laurent Pinchart
Hi Jacopo, On Thursday, 22 February 2018 14:36:00 EET jacopo mondi wrote: > On Thu, Feb 22, 2018 at 02:14:53PM +0200, Laurent Pinchart wrote: > > On Thursday, 22 February 2018 14:04:12 EET jacopo mondi wrote: > >> On Wed, Feb 21, 2018 at 10:28:06PM +0200, Laurent Pinchart wrote: > >>> On Tuesday,

Re: [PATCH v2 01/21] lib/vsprintf: Print time and date in human readable format via %pt

2018-02-22 Thread Andy Shevchenko
On Wed, 2018-02-21 at 15:19 +0100, Geert Uytterhoeven wrote: > On Wed, Feb 21, 2018 at 2:23 PM, Andy Shevchenko > wrote: > > On Wed, 2018-02-21 at 08:38 +0100, Rasmus Villemoes wrote: > > > On 2018-02-21 00:55, Joe Perches wrote: > > > Well, on the one hand, I like to reduce the size of the kerne

Re: [PATCH] dsa: ptp; mark dummy helpers as 'inline'

2018-02-22 Thread Andrew Lunn
On Thu, Feb 22, 2018 at 12:44:40PM +0100, Arnd Bergmann wrote: > Declaring a static function in a header leads to a warning every > time that header gets included without the function being used: > > In file included from drivers/net/dsa/mv88e6xxx/chip.c:42: > drivers/net/dsa/mv88e6xxx/ptp.h:92:13

[PATCH] selftest: support running subset of selftests for run_kselftest.sh

2018-02-22 Thread Zong Li
Simply use the first argument to specify the subset of selftests. Use comma notation to separate multiple tests. (e.g. ./run_kselftest.sh size,timers,...) Default behaviour is running all selftests. Each selftest be defined as function that we can run one of selftests. The function name has underl

Re: [PATCH v3 2/4] gpio: Add GPIO driver for Nintendo Wii

2018-02-22 Thread Linus Walleij
On Fri, Feb 9, 2018 at 1:07 PM, Jonathan Neuschäfer wrote: > The Nintendo Wii's chipset (called "Hollywood") has a GPIO controller > that supports a configurable number of pins (up to 32), interrupts, and > some special mechanisms to share the controller between the system's > security processor

Re: [PATCH 1/3] ARC: mcip: halt GFRC together with ARC cores

2018-02-22 Thread Eugeniy Paltsev
Hi Vineet, On Wed, 2018-02-21 at 15:42 -0800, Vineet Gupta wrote: > On 02/21/2018 12:31 PM, Vineet Gupta wrote: > > Hi Eugeniy, > > > > > Starting from ARC HS v3.0 > > > >  From the STAR fix, it seem this was fixed in HS 2.1c, so you should be > > able to  > > test it on HSDK, which was my next

[PATCH v1 1/4] dmi: Introduce dmi_get_bios_year() helper

2018-02-22 Thread Andy Shevchenko
It's used in several places and more users may come. By using this helper they may create a slightly cleaner code. Signed-off-by: Andy Shevchenko --- include/linux/dmi.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/linux/dmi.h b/include/linux/dmi.h index 46e151172d95..241c2

[PATCH 2/5] regmap: Remove unnecessary printk for failed allocation

2018-02-22 Thread Charles Keepax
Signed-off-by: Charles Keepax --- drivers/base/regmap/regmap.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index 8a6de76f89bb..c84c4d5d2df7 100644 --- a/drivers/base/regmap/regmap.c +++ b/drivers/base/regmap/

[PATCH v1 4/4] pci: Re-use new dmi_get_bios_year() helper

2018-02-22 Thread Andy Shevchenko
...instead of open coding its functionality. Signed-off-by: Andy Shevchenko --- drivers/pci/pci.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index f6a4dd10d9b0..ae654e21439d 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c

Re: mmotm 2018-02-21-14-48 uploaded (mm/page_alloc.c on UML)

2018-02-22 Thread Michal Hocko
On Thu 22-02-18 11:38:32, Eugeniu Rosca wrote: > Hi Michal, > > Please, let me know if any action is expected from my end. I do not thing anything is really needed right now. If you have a strong opinion about the solution (ifdef vs. noop stub) then speak up. > Thank you for your support and sor

[PATCH v1 2/4] x86/pci: Re-use new dmi_get_bios_year() helper

2018-02-22 Thread Andy Shevchenko
...instead of open coding its functionality. Signed-off-by: Andy Shevchenko --- arch/x86/pci/acpi.c| 8 ++-- arch/x86/pci/direct.c | 5 ++--- arch/x86/pci/mmconfig-shared.c | 9 ++--- 3 files changed, 6 insertions(+), 16 deletions(-) diff --git a/arch/x86/pci/acpi.c

[PATCH 4/5] regmap: Tidy up regmap_raw_write chunking code

2018-02-22 Thread Charles Keepax
Raw writes may need to be split into small chunks if max_raw_write is set. Tidy up the code implementing this, the new code is slightly clearer, slightly shorter and slightly more efficient. Signed-off-by: Charles Keepax --- drivers/base/regmap/regmap.c | 37 -

[PATCH 1/5] regmap: Format data for raw write in regmap_bulk_write

2018-02-22 Thread Charles Keepax
In the case were the bulk transaction is split up into smaller chunks data is passed directly to regmap_raw_write. However regmap_bulk_write uses data in host endian and regmap_raw_write expects data in device endian. As such if the host and device differ in endian the wrong data will be written to

[PATCH v1 3/4] ACPI / sleep: Re-use new dmi_get_bios_year() helper

2018-02-22 Thread Andy Shevchenko
...instead of open coding its functionality. Signed-off-by: Andy Shevchenko --- drivers/acpi/sleep.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c index 46cde0912762..b35923e3a926 100644 --- a/drivers/acpi/sleep.c +++ b/drivers

[PATCH 5/5] regmap: Merge redundant handling in regmap_bulk_write

2018-02-22 Thread Charles Keepax
The handling for the first two cases in regmap_bulk_write is essentially identical. The first case is just a better implementation of the second, supporting 8 byte registers and doing the locking manually to avoid bouncing the lock for each register. Drop some redundant code by removing the second

Re: [PATCH v2] perf cgroup: simplify arguments if track multiple events for a cgroup

2018-02-22 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 22, 2018 at 06:34:08PM +0800, Weiping Zhang escreveu: > 2018-01-31 17:22 GMT+08:00 Jiri Olsa : > > On Mon, Jan 29, 2018 at 11:48:09PM +0800, weiping zhang wrote: > >> if use -G with one cgroup and -e with multiple events, only the first > >> event has correct cgroup setting, all events

[PATCH 3/5] regmap: Move the handling for max_raw_write into regmap_raw_write

2018-02-22 Thread Charles Keepax
Currently regmap_bulk_write will split a write into chunks before calling regmap_raw_write if max_raw_write is set. It is more logical for this handling to be inside regmap_raw_write itself, as this removes the need to keep re-implementing the chunking code, which would be the same for all users of

Re: [PATCH] pinctrl: ocelot: make function ocelot_pinctrl_probe static

2018-02-22 Thread Linus Walleij
On Thu, Feb 8, 2018 at 3:24 PM, Colin King wrote: > From: Colin Ian King > > The function ocelot_pinctrl_probe is local to the source and does not > need to be in global scope, so make it static. > > Cleans up sparse warning: > drivers/pinctrl/pinctrl-ocelot.c:465:5: warning: symbol > 'ocelot_pi

Re: [PATCH 0/6] Introduce STMicroelectronics MultiFunction eXpander

2018-02-22 Thread Linus Walleij
Hi Amelie, thanks a lot for your patches! On Thu, Feb 8, 2018 at 3:27 PM, Amelie Delaunay wrote: > This series adds support for STMicroelectronics MultiFunction eXpander > (ST MFX), used on some STM32 discovery and evaluation boards. So I take it that the department creating the STMPE "ST MPE"

Re: samples/seccomp/ broken when cross compiling s390, ppc allyesconfig

2018-02-22 Thread Michal Hocko
On Wed 14-02-18 09:14:47, Kees Cook wrote: [...] > I can send it through my seccomp tree via James Morris. Could you please do it? > > > > From 8d8457e96296538508e478f598d1c8b3406a8626 Mon Sep 17 00:00:00 2001 > > From: Michal Hocko > > Date: Wed, 14 Feb 2018 10:15:12 +0100 > > Subject: [PATCH]

Re: [PATCH 04/30] Enforce module signatures if the kernel is locked down

2018-02-22 Thread David Howells
I'm considering folding the attached changes into this patch. It adjusts the errors generated: (1) If there's no signature (ENODATA) or we can't check it (ENOPKG, ENOKEY), then: (a) If signatures are enforced then EKEYREJECTED is returned. (b) If IMA will have validated the imag

Re: [PATCH v3 05/10] pwm: add PWM mode to pwm_config()

2018-02-22 Thread Sean Young
On Thu, Feb 22, 2018 at 02:01:16PM +0200, Claudiu Beznea wrote: > Add PWM mode to pwm_config() function. The drivers which uses pwm_config() > were adapted to this change. > > Signed-off-by: Claudiu Beznea > --- -snip- > diff --git a/drivers/media/rc/ir-rx51.c b/drivers/media/rc/ir-rx51.c > ind

Re: [PATCH v3 2/4] gpio: Add GPIO driver for Nintendo Wii

2018-02-22 Thread Jonathan Neuschäfer
On Thu, Feb 22, 2018 at 01:57:07PM +0100, Linus Walleij wrote: > On Fri, Feb 9, 2018 at 1:07 PM, Jonathan Neuschäfer > wrote: > > > The Nintendo Wii's chipset (called "Hollywood") has a GPIO controller > > that supports a configurable number of pins (up to 32), interrupts, and > > some special me

Re: mmotm 2018-02-21-14-48 uploaded (mm/page_alloc.c on UML)

2018-02-22 Thread Eugeniu Rosca
On Thu, Feb 22, 2018 at 01:59:55PM +0100, Michal Hocko wrote: > On Thu 22-02-18 11:38:32, Eugeniu Rosca wrote: > > Hi Michal, > > > > Please, let me know if any action is expected from my end. > > I do not thing anything is really needed right now. If you have a strong > opinion about the solutio

[PATCH NAND v3] mtd: nand: Replace printk() with appropriate pr_*() macro

2018-02-22 Thread Shreeya Patel
The log levels embedded with the name are more concise than printk. Replace printks having a log level with the appropriate pr_*macro. Define pr_fmt() and remove other additional macros from some of the replaced printks. Signed-off-by: Shreeya Patel --- Changes in v2 -Merge previous patches of

Re: [PATCH 1/6] dt-bindings: mfd: Add ST Multi-Function eXpander driver

2018-02-22 Thread Linus Walleij
On Thu, Feb 8, 2018 at 3:27 PM, Amelie Delaunay wrote: > +Required properties: > +- compatible: must be "st,mfx" I bet this should be more specific. Tomorrow there will be a new version of this expander and then we will wish that we used a more specific compatible for the first one. Does this c

Re: [PATCH NAND v3] mtd: nand: Replace printk() with appropriate pr_*() macro

2018-02-22 Thread Shreeya Patel
On Thu, 2018-02-22 at 18:40 +0530, Shreeya Patel wrote: > The log levels embedded with the name are more concise than > printk. > Replace printks having a log level with the appropriate > pr_*macro. > Define pr_fmt() and remove other additional macros from > some of the replaced printks. > > Signe

Re: [PATCH] PCI: Add quirk for Cavium Thunder-X2 PCIe erratum #173

2018-02-22 Thread George Cherian
Hi Bjorn, On 02/22/2018 04:50 AM, Bjorn Helgaas wrote: On Wed, Feb 21, 2018 at 04:25:08PM +0530, George Cherian wrote: On 02/21/2018 03:24 PM, Lukas Wunner wrote: On Wed, Feb 21, 2018 at 02:58:13PM +0530, George Cherian wrote: I will explain the setup used To the Cavium ThunderX RC the follow

Applied "ASoC: uniphier: evea: fix lisence comment style" to the asoc tree

2018-02-22 Thread Mark Brown
The patch ASoC: uniphier: evea: fix lisence comment style has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent

Re: [PATCH 4.9 34/77] powerpc: fix build errors in stable tree

2018-02-22 Thread Michael Ellerman
Yves-Alexis Perez writes: > On Thu, 2018-02-22 at 12:01 +1100, Michael Ellerman wrote: >> So I guess this patch is OK for now, but we do need a full back port of >> 222f20f to 4.9. > > Hi, > > in the light of this, do you know the full status of protections against > Meltdown on powerpc/ppc64el a

Re: [PATCH v5 0/7] Topstar U931/RVP7 ACPI LED Workaround

2018-02-22 Thread Andy Shevchenko
On Wed, Feb 21, 2018 at 6:59 PM, Guillaume Douézan-Grard wrote: > Hi Andy, > > Thank you for your review. Changes since the previous submission are > highlighted below. > > On Topstar U931/RVP7 Notebooks, an issue prevents the WLAN toggle key > from being properly managed by the Embedded Controlle

Re: [PATCH v1 2/2] PCI: Allow user to request power management of conventional and hotplug bridges

2018-02-22 Thread Lukas Wunner
On Tue, Feb 20, 2018 at 12:15:54PM -0600, Bjorn Helgaas wrote: > Basically I was hoping to partially rectify what I think was a mistake > on my part when we merged this. 9d26d3a8f1b0 ("PCI: Put PCIe ports > into D3 during suspend") is somewhat misleading because it suggests > that PCI bridge power

Re: [PATCH] platform/x86: silead_dmi: Add DMI match for the I.T.Works TW701 tablet

2018-02-22 Thread Andy Shevchenko
On Thu, Feb 22, 2018 at 12:18 PM, Hans de Goede wrote: > The I.T.Works TW701 7" tablet is a differently branded version of the > same generic 7" Windows tablet as the Trekstor ST70416-6. Add a DMI > match-table entry for it pointing to the Trekstor's touchscreen info. > Pushed to my review and te

Re: [v2 1/3] x86/microcode/intel: Check microcode revision before updating sibling threads

2018-02-22 Thread Raj, Ashok
On Thu, Feb 22, 2018 at 01:15:06PM +0100, Borislav Petkov wrote: > On Thu, Feb 22, 2018 at 03:55:54AM -0800, Raj, Ashok wrote: > > The current code wasn't trying to enforce checking the loaded microcode > > revision on a thread > > before attempting to load the microcode. While you comeback from r

Re: [PATCH v3 2/5] m68k: rename UL() to TO_UL()

2018-02-22 Thread Geert Uytterhoeven
Hi Yamada-san, On Thu, Feb 22, 2018 at 1:15 PM, Masahiro Yamada wrote: > ARM, ARM64 and UniCore32 define UL(x) like follows: > #define UL(x) _AC(x, UL) > > While, M68K defines it differently: > #define UL(x) ((unsigned long) (x)) > > I want to move the former to a common header. Beforehand,

Re: [PATCH v3 05/10] pwm: add PWM mode to pwm_config()

2018-02-22 Thread Claudiu Beznea
On 22.02.2018 14:33, Daniel Thompson wrote: > On Thu, Feb 22, 2018 at 02:01:16PM +0200, Claudiu Beznea wrote: >> Add PWM mode to pwm_config() function. The drivers which uses pwm_config() >> were adapted to this change. >> >> Signed-off-by: Claudiu Beznea >> --- >> arch/arm/mach-s3c24xx/mach-rx

FLR on AER

2018-02-22 Thread Jon Masters
Hi Bjorn, It looks like the AER driver won’t do a device FLR but instead will default to progressively bigger hammers. Am I missing something? Jon. -- Computer Architect | Sent from my 64-bit #ARM Powered phone

Re: [PATCH 1/6] dt-bindings: mfd: Add ST Multi-Function eXpander driver

2018-02-22 Thread Linus Walleij
On Mon, Feb 19, 2018 at 4:59 PM, Amelie DELAUNAY wrote: > On 02/19/2018 12:19 AM, Rob Herring wrote: >> On Thu, Feb 08, 2018 at 03:27:32PM +0100, Amelie Delaunay wrote: >>> +- interrupts = must be <0> >>> +- gpio-controller: marks the device node as a GPIO controller >>> +- #gpio-cells: should be

Re: [PATCH v3 05/10] pwm: add PWM mode to pwm_config()

2018-02-22 Thread Claudiu Beznea
On 22.02.2018 15:01, Sean Young wrote: > On Thu, Feb 22, 2018 at 02:01:16PM +0200, Claudiu Beznea wrote: >> Add PWM mode to pwm_config() function. The drivers which uses pwm_config() >> were adapted to this change. >> >> Signed-off-by: Claudiu Beznea >> --- > > -snip- > >> diff --git a/drivers

Re: mmotm 2018-02-21-14-48 uploaded (mm/page_alloc.c on UML)

2018-02-22 Thread Michal Hocko
On Thu 22-02-18 14:08:14, Eugeniu Rosca wrote: > On Thu, Feb 22, 2018 at 01:59:55PM +0100, Michal Hocko wrote: > > On Thu 22-02-18 11:38:32, Eugeniu Rosca wrote: > > > Hi Michal, > > > > > > Please, let me know if any action is expected from my end. > > > > I do not thing anything is really neede

[PATCH] pinctrl: artpec-6: Add smaller groups for uarts

2018-02-22 Thread Niklas Cassel
From: Jesper Nilsson Add group configuration for uarts that are cut down variants, the standard being full, i.e. all signals, flow control, i.e. rx/tx and cts/rts, and rx/tx only. This allows us to be more precise in which pins we're actually using. Signed-off-by: Jesper Nilsson --- drivers/p

Re: [PATCH v2 09/19] ARM64: dts: Add R-Car Salvator-x M3-N support

2018-02-22 Thread Geert Uytterhoeven
Hi Arnd, On Thu, Feb 22, 2018 at 12:39 PM, Arnd Bergmann wrote: > On Wed, Feb 21, 2018 at 6:15 PM, Simon Horman wrote: >> On Tue, Feb 20, 2018 at 04:46:23PM +0100, Geert Uytterhoeven wrote: >>> On Tue, Feb 20, 2018 at 4:12 PM, Jacopo Mondi >>> wrote: >>> > Add basic support for R-Car Salvator-

Re: [Freedreno] [PATCH v7 6/6] drm/msm: iommu: Replace runtime calls with runtime suppliers

2018-02-22 Thread Rob Clark
On Thu, Feb 22, 2018 at 3:13 AM, Tomasz Figa wrote: > On Fri, Feb 16, 2018 at 9:13 AM, Tomasz Figa wrote: >> On Fri, Feb 16, 2018 at 2:14 AM, Robin Murphy wrote: >>> On 15/02/18 04:17, Tomasz Figa wrote: >>> [...] > > Could you elaborate on what kind of locking you are concerned about? >

Re: [PATCH] ARM: orion: fix orion_ge00_switch_board_info initialization

2018-02-22 Thread Andrew Lunn
On Wed, Feb 21, 2018 at 01:18:49PM +0100, Arnd Bergmann wrote: > A section type mismatch warning shows up when building with LTO, > since orion_ge00_mvmdio_bus_name was put in __initconst but not marked > const itself: > > include/linux/of.h: In function 'spear_setup_of_timer': > arch/arm/mach-spe

Re: [PATCH v1 2/2] PCI: Allow user to request power management of conventional and hotplug bridges

2018-02-22 Thread Rafael J. Wysocki
On 2/22/2018 2:18 PM, Lukas Wunner wrote: On Tue, Feb 20, 2018 at 12:15:54PM -0600, Bjorn Helgaas wrote: Basically I was hoping to partially rectify what I think was a mistake on my part when we merged this. 9d26d3a8f1b0 ("PCI: Put PCIe ports into D3 during suspend") is somewhat misleading beca

Re: [PATCH 4.9 34/77] powerpc: fix build errors in stable tree

2018-02-22 Thread Yves-Alexis Perez
On Fri, 2018-02-23 at 00:16 +1100, Michael Ellerman wrote: > With the patches I just sent, for pseries and powernv, the mitigation > should be in place. On machines with updated firmware we'll use the > hardware-assisted L1 flush, otherwise we fallback to doing it in > software. So as of 4.9.82 me

Re: [PATCH v4] reset: add support for non-DT systems

2018-02-22 Thread Bartosz Golaszewski
2018-02-22 12:34 GMT+01:00 Philipp Zabel : > On Tue, 2018-02-20 at 10:40 -0600, David Lechner wrote: > [...] >> > In your case the platform code that adds the lookup may be identical to >> > the code that registers the struct reset_controller_dev, but that >> > doesn't have to be the case. I'm not

[PATCH v2] mmc: dw_mmc: Fix the DTO timeout overflow calculation for 32-bit systems

2018-02-22 Thread Evgeniy Didin
In commit 9d9491a7da2a ("mmc: dw_mmc: Fix the DTO timeout calculation") have been made changes which cause multiply overflow for 32-bit systems. The broken timeout calculations caused false interrupt latency warnings and stacktrace splat (such as below) when accessing the SD Card. | Running : 4M

Re: [PATCH v7 00/42] ARM: davinci: convert to common clock framework​

2018-02-22 Thread Bartosz Golaszewski
2018-02-21 18:46 GMT+01:00 Bartosz Golaszewski : > 2018-02-21 18:05 GMT+01:00 David Lechner : >> On 02/21/2018 06:01 AM, Bartosz Golaszewski wrote: >>> >>> 2018-02-20 19:39 GMT+01:00 David Lechner : On 02/20/2018 07:33 AM, Bartosz Golaszewski wrote: > > > 2018-02-19 21:21 GMT+

Re: Use higher-order pages in vmalloc

2018-02-22 Thread Michal Hocko
On Thu 22-02-18 04:22:54, Matthew Wilcox wrote: > On Thu, Feb 22, 2018 at 07:59:43AM +0100, Michal Hocko wrote: > > On Wed 21-02-18 09:01:29, Matthew Wilcox wrote: > > > Right. It helps with fragmentation if we can keep higher-order > > > allocations together. > > > > Hmm, wouldn't it help if we

Re: [PATCH 2/2] crypto: omap: Improve a size determination in three functions

2018-02-22 Thread Herbert Xu
On Wed, Feb 14, 2018 at 04:26:36PM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 14 Feb 2018 16:12:05 +0100 > > Replace the specification of data structures by pointer dereferences > as the parameter for the operator "sizeof" to make the corresponding size > determination a

Re: backporting "ext4: inplace xattr block update fails to deduplicate blocks" to LTS kernels?

2018-02-22 Thread Tommi Rantala
On 21.02.2018 17:56, Theodore Ts'o wrote: On Wed, Feb 21, 2018 at 12:40:00PM +0100, Greg Kroah-Hartman wrote: On Mon, Feb 19, 2018 at 03:26:37PM +0200, Tommi Rantala wrote: OK to backport it? I tested it briefly in 4.9, seems to work. It looks sane, but it would be nice if I can get people w

Re: [RFC PATCH] riscv/locking: Strengthen spin_lock() and spin_unlock()

2018-02-22 Thread Peter Zijlstra
On Thu, Feb 22, 2018 at 01:19:50PM +0100, Andrea Parri wrote: > C unlock-lock-read-ordering > > {} > /* s initially owned by P1 */ > > P0(int *x, int *y) > { > WRITE_ONCE(*x, 1); > smp_wmb(); > WRITE_ONCE(*y, 1); > } > > P1(int *x, int *y, spinlock_t *s) > { > int r0; >

Re: [PATCH 2/2] crypto: bcm: One function call less in do_shash() after error detection

2018-02-22 Thread Herbert Xu
On Wed, Feb 14, 2018 at 10:40:26PM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 14 Feb 2018 22:22:20 +0100 > > The kfree() function was called in one case by the do_shash() function > during error handling even if the passed variable contained a null pointer. > > * Reorder

Re: [PATCH 2/6] mfd: Add ST Multi-Function eXpander core driver

2018-02-22 Thread Linus Walleij
On Thu, Feb 8, 2018 at 3:27 PM, Amelie Delaunay wrote: Thanks for working on this complex expander driver. It is a bit daunting. Sorry if there are lots of comments and considerations, but it reflects the complexity of the hardware. > +enum mfx_block { > + MFX_BLOCK_GPIO = BIT(0),

Re: [PATCH] Staging: gdm724x: hci: Changed camel-case to snake-case.

2018-02-22 Thread Greg KH
On Wed, Feb 21, 2018 at 01:45:58PM +0300, Dan Carpenter wrote: > On Wed, Feb 21, 2018 at 02:39:28AM -0800, Quytelda Kahja wrote: > > Changed a variable name from camel to snake case to fix a coding style > > issue. > > > > Signed-off-by: Quytelda Kahja > > --- > > drivers/staging/gdm724x/hci_pac

Re: [v2 1/3] x86/microcode/intel: Check microcode revision before updating sibling threads

2018-02-22 Thread Borislav Petkov
On Thu, Feb 22, 2018 at 05:19:18AM -0800, Raj, Ashok wrote: > This isn't a simple WRMSR like others. Microcode engine needs to do > a bunch of validation. So this is slowly starting to resemble a real reason why not to. That should be part of the code comment. > We now have new guidance that the

Re: [PATCH v7 6/6] drm/msm: iommu: Replace runtime calls with runtime suppliers

2018-02-22 Thread Robin Murphy
[sorry, I had intended to reply sooner but clearly forgot] On 16/02/18 00:13, Tomasz Figa wrote: On Fri, Feb 16, 2018 at 2:14 AM, Robin Murphy wrote: On 15/02/18 04:17, Tomasz Figa wrote: [...] Could you elaborate on what kind of locking you are concerned about? As I explained before, the no

Re: [PATCH 16/18] crypto: talitos - do hw_context DMA mapping outside the requests

2018-02-22 Thread Herbert Xu
On Thu, Feb 22, 2018 at 12:29:28PM +, Horia Geantă wrote: > > IIUC this means that there is no room for improvement. > This patch needs to be reverted, to restore previous behaviour when the > hw_context was mapped / unmapped for every request. In general we should avoid trying to do batching

Re: [PATCH v2 0/3] Directed kmem charging

2018-02-22 Thread Jan Kara
On Wed 21-02-18 12:54:26, Andrew Morton wrote: > On Wed, 21 Feb 2018 09:18:35 -0800 Shakeel Butt wrote: > > > On Wed, Feb 21, 2018 at 8:09 AM, Christopher Lameter wrote: > > > Another way to solve this is to switch the user context right? > > > > > > Isnt it possible to avoid these patches if do

Re: [PATCH 3/6] gpio: Add GPIO support for the ST Multi-Function eXpander

2018-02-22 Thread Linus Walleij
On Thu, Feb 8, 2018 at 3:27 PM, Amelie Delaunay wrote: > ST Multi-Function eXpander (MFX) can be used as GPIO expander. > It has 16 fast GPIOs and can have 8 extra alternate GPIOs > when other MFX features are not enabled. > > Signed-off-by: Amelie Delaunay As mentioned I think this driver need

Re: [PATCH v2] staging: android: ashmem: Fix lockdep issue during llseek

2018-02-22 Thread Greg Kroah-Hartman
On Fri, Feb 16, 2018 at 11:02:01AM -0800, Joel Fernandes wrote: > ashmem_mutex create a chain of dependencies like so: > > (1) > mmap syscall -> > mmap_sem -> (acquired) > ashmem_mmap > ashmem_mutex (try to acquire) > (block) > > (2) > llseek syscall -> > ashmem_llseek -> > ashmem_mu

Re: [PATCH v2 3/3] fs: fsnotify: account fsnotify metadata to kmemcg

2018-02-22 Thread Michal Hocko
On Tue 20-02-18 19:01:01, Shakeel Butt wrote: > A lot of memory can be consumed by the events generated for the huge or > unlimited queues if there is either no or slow listener. This can cause > system level memory pressure or OOMs. So, it's better to account the > fsnotify kmem caches to the memc

Re: [PATCH v5 2/2] mm/memcontrol.c: Reduce reclaim retries in mem_cgroup_resize_limit()

2018-02-22 Thread Andrey Ryabinin
On 02/21/2018 11:17 PM, Andrew Morton wrote: > On Fri, 19 Jan 2018 16:11:18 +0100 Michal Hocko wrote: > >> And to be honest, I do not really see why keeping retrying from >> mem_cgroup_resize_limit should be so much faster than keep retrying from >> the direct reclaim path. We are doing SWAP_CLUS

Re: [PATCH 5/6] ARM: dts: stm32: add joystick support on stm32746g-eval

2018-02-22 Thread Linus Walleij
Hi Amelie, thanks for your patch. On Thu, Feb 8, 2018 at 3:27 PM, Amelie Delaunay wrote: > The joystick on stm32746g-eval uses gpios on MFX gpio expander. > > Signed-off-by: Amelie Delaunay (...) > + joystick { > + compatible = "gpio-keys"; > + #address-cells

Re: [PATCH v2 0/3] Directed kmem charging

2018-02-22 Thread Jan Kara
On Wed 21-02-18 11:57:47, Christopher Lameter wrote: > On Wed, 21 Feb 2018, Shakeel Butt wrote: > > > On Wed, Feb 21, 2018 at 8:09 AM, Christopher Lameter wrote: > > > Another way to solve this is to switch the user context right? > > > > > > Isnt it possible to avoid these patches if do the allo

Re: [PATCH 4/6] ARM: dts: stm32: add MFX support on I2C1 on stm32746g-eval

2018-02-22 Thread Linus Walleij
On Thu, Feb 8, 2018 at 3:27 PM, Amelie Delaunay wrote: > MFX is used as gpio expander on stm32746g-eval. > > Signed-off-by: Amelie Delaunay (...) > + mfx: mfx@42 { > + compatible = "st,mfx"; > + reg = <0x42>; > + interrupts = <8 1>; > +

Re: FLR on AER

2018-02-22 Thread Sinan Kaya
On 2/22/2018 8:21 AM, Jon Masters wrote: > Hi Bjorn, > > It looks like the AER driver won’t do a device FLR but instead will default > to progressively bigger hammers. Am I missing something? > AFAIK, AER driver does a secondary bus reset only if it observes a FATAL error. In order to issue an

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

2018-02-22 Thread Stephen Rothwell
Hi Michal, On Thu, 22 Feb 2018 08:11:00 +0100 Michal Hocko wrote: > > This is interesting. I thought that IS_ENABLED(CONFIG_HAVE_MEMBLOCK) > would have the same meaning as ifdef CONFIG_HAVE_MEMBLOCK so the branch > will never be considered. If that is not the case then I would rather > reintroduc

Re: [PATCH] debugobjects: fix debug_objects_freed accounting

2018-02-22 Thread Waiman Long
On 02/22/2018 06:45 AM, Arnd Bergmann wrote: > The removal of the batched object freeing has caused the debug_objects_freed > to become read-only, and the reading is inside an ifdef, so gcc warns that it > is completely unused without CONFIG_DEBUG_FS: > > lib/debugobjects.c:71:14: error: 'debug_obj

Re: [PATCH 4.9 34/77] powerpc: fix build errors in stable tree

2018-02-22 Thread Yves-Alexis Perez
On Thu, 2018-02-22 at 13:02 +0100, Yves-Alexis Perez wrote: > On Thu, 2018-02-22 at 12:08 +0100, Greg Kroah-Hartman wrote: > > Did you look at /sys/devices/system/cpu/vulnerabilities/ to see what the > > files there say? > > Unfortunately I don't have access to a powerpc box where I could run a ne

linux-next: Signed-off-by missing for commit in the s390 tree

2018-02-22 Thread Stephen Rothwell
Hi all, Commit 69dc2c05a926 ("s390/sclp: Add support for Store Data SCLP interface") is missing a Signed-off-by from its committer. -- Cheers, Stephen Rothwell pgpMd0yMKv5ay.pgp Description: OpenPGP digital signature

Re: [PATCH] watchdog: coh901327: make license text and module licence match

2018-02-22 Thread Linus Walleij
On Sat, Feb 10, 2018 at 10:27 AM, Marcus Folkesson wrote: > Licence text is specifying "GPLv2" but the MODULE_LICENSE is set to "GPLv2 > or later". > > See include/linux/module.h: > "GPL" [GNU Public License v2 or later] > "GPL v2"[GNU Public Lice

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