[PATCH v3 01/15] dt-bindings: arm: tegra: Remove duplicated Tegra30+ MC binding

2018-02-20 Thread Dmitry Osipenko
There are two bindings for the same Memory Controller. One of the bindings became obsolete long time ago and probably was left unnoticed, remove it for consistency. Signed-off-by: Dmitry Osipenko --- .../bindings/arm/tegra/nvidia,tegra30-mc.txt | 18 -- 1 file changed,

Re: [PATCH] locking/ww_mutex: add ww_mutex_is_owned_by function v4

2018-02-20 Thread Daniel Vetter
On Tue, Feb 20, 2018 at 03:49:46PM +0100, Christian König wrote: > amdgpu needs to verify if userspace sends us valid addresses and the simplest > way of doing this is to check if the buffer object is locked with the ticket > of the current submission. > > Clean up the access to the ww_mutex inter

[PATCH-next] staging: net: netlogic: Remove unneeded cast

2018-02-20 Thread Christopher Diaz Riveros
Fix Coccinelle alert: drivers/staging//netlogic/xlr_net.c:996:12-30: WARNING: casting value returned by memory allocation function to (struct xlr_adapter *) is useless. This issue was detected by using the Coccinelle software. Signed-off-by: Christopher Diaz Riveros --- drivers/staging/netlog

Re: [PATCH v2] kbuild: Don't source kernel config

2018-02-20 Thread Masahiro Yamada
2018-02-21 1:16 GMT+09:00 Richard Weinberger : > Am Dienstag, 20. Februar 2018, 17:00:39 CET schrieb Masahiro Yamada: >> 2018-02-21 0:25 GMT+09:00 Richard Weinberger : >> > Am Dienstag, 20. Februar 2018, 16:18:11 CET schrieb Masahiro Yamada: >> >> 2018-02-19 18:22 GMT+09:00 Richard Weinberger : >>

Re: [PATCH 4/7] sched/fair: Avoid unnecessary balancing of asymmetric capacity groups

2018-02-20 Thread Morten Rasmussen
On Mon, Feb 19, 2018 at 04:10:11PM +0100, Peter Zijlstra wrote: > On Thu, Feb 15, 2018 at 04:20:51PM +, Morten Rasmussen wrote: > > +/* > > + * group_similar_cpu_capacity: Returns true if the minimum capacity of the > > + * compared groups differ by less than 12.5%. > > + */ > > +static inline

[PATCH-next] staging: rtl8723bs: Remove unneeded cast

2018-02-20 Thread Christopher Diaz Riveros
Fix Coccinelle alert: drivers/staging//rtl8723bs/os_dep/sdio_intf.c:340:13-27: WARNING: casting value returned by memory allocation function to (struct adapter *) is useless. This issue was detected by using the Coccinelle software. Signed-off-by: Christopher Diaz Riveros --- drivers/staging/

Re: [PATCH v2] usb: host: ehci-platform: add support for optional external vbus supply

2018-02-20 Thread Roger Quadros
On 20/02/18 16:46, Amelie DELAUNAY wrote: > Hi, > > On 02/20/2018 03:00 PM, Roger Quadros wrote: >> Hi, >> >> On 20/02/18 14:58, Amelie Delaunay wrote: >>> On some boards, especially when vbus supply requires large current, >>> and the charge pump on the PHY isn't enough, an external vbus power sw

Re: [RFCv4 16/21] v4l2: video_device: support for creating requests

2018-02-20 Thread Hans Verkuil
On 02/20/2018 05:44 AM, Alexandre Courbot wrote: > Add a new VIDIOC_NEW_REQUEST ioctl, which allows to instanciate requests > on devices that support the request API. Requests created that way can > only control the device they originate from, making them suitable for > simple devices, but not comp

[PATCH v3 2/2] mfd: arizona: Update DT doc to support more standard reset binding

2018-02-20 Thread Charles Keepax
Signed-off-by: Charles Keepax Reviewed-by: Rob Herring --- No changes since v2. Thanks, Charles Documentation/devicetree/bindings/mfd/arizona.txt | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mfd/arizona.txt b/Documentation/devicet

[PATCH-next] staging: emxx_udc: Remove unneeded cast

2018-02-20 Thread Christopher Diaz Riveros
Fix Coccinelle alert: drivers/staging//emxx_udc/emxx_udc.c:2689:19-21: WARNING: casting value returned by memory allocation function to (u8 *) is useless. This issue was detected by using the Coccinelle software. Signed-off-by: Christopher Diaz Riveros --- drivers/staging/emxx_udc/emxx_udc.c

Re: [PATCH 05/17] trace doc: convert trace/ftrace.txt to rst format

2018-02-20 Thread Jonathan Corbet
On Tue, 20 Feb 2018 10:26:44 -0500 Steven Rostedt wrote: > One it should be a separate patch. Two, how does SPDX deal with dual > licenses? Separate them with "OR" on a single line. See Documentation/process/license-rules.rst for details. jon

[PATCH v3 11/15] memory: tegra: Add Tegra210 memory controller hot resets

2018-02-20 Thread Dmitry Osipenko
From: Thierry Reding Define the table of memory controller hot resets for Tegra210. Signed-off-by: Thierry Reding --- drivers/memory/tegra/tegra210.c | 45 + 1 file changed, 45 insertions(+) diff --git a/drivers/memory/tegra/tegra210.c b/drivers/memory/

[PATCH v3 1/2] mfd: arizona: Update reset pin to use GPIOD

2018-02-20 Thread Charles Keepax
Now GPIOD has support for both pdata systems and for non-standard DT bindings the Arizona reset GPIO can be converted to use it. Signed-off-by: Charles Keepax --- Changes since v2: - Kept null check in arizona_enable_reset, although gpiod_set_value_cansleep does its own null check it will al

[PATCH v3 14/15] memory: tegra: Add Tegra30 memory controller hot resets

2018-02-20 Thread Dmitry Osipenko
Define the table of memory controller hot resets for Tegra30. Signed-off-by: Dmitry Osipenko --- drivers/memory/tegra/tegra30.c | 33 + 1 file changed, 33 insertions(+) diff --git a/drivers/memory/tegra/tegra30.c b/drivers/memory/tegra/tegra30.c index d2ba50ed049

[PATCH v3 15/15] memory: tegra: Add Tegra20 memory controller hot resets

2018-02-20 Thread Dmitry Osipenko
Define the table of memory controller hot resets for Tegra20 and add specific to Tegra20 hot reset operations. Signed-off-by: Dmitry Osipenko --- drivers/memory/tegra/tegra20.c | 118 + 1 file changed, 118 insertions(+) diff --git a/drivers/memory/tegra/t

[PATCH v3 10/15] memory: tegra: Introduce memory client hot reset

2018-02-20 Thread Dmitry Osipenko
In order to reset busy HW properly, memory controller needs to be involved, otherwise it is possible to get corrupted memory or hang machine if HW was reset during DMA. Introduce memory client 'hot reset' that will be used for resetting of busy HW. Signed-off-by: Dmitry Osipenko --- drivers/memo

[PATCH v3 13/15] memory: tegra: Add Tegra114 memory controller hot resets

2018-02-20 Thread Dmitry Osipenko
Define the table of memory controller hot resets for Tegra114. Signed-off-by: Dmitry Osipenko --- drivers/memory/tegra/tegra114.c | 33 + 1 file changed, 33 insertions(+) diff --git a/drivers/memory/tegra/tegra114.c b/drivers/memory/tegra/tegra114.c index 7560b2f

[PATCH-next] staging: rtl8188eu: Remove unneeded cast

2018-02-20 Thread Christopher Diaz Riveros
Fix Coccinelle alert: drivers/staging//rtl8188eu/os_dep/usb_intf.c:336:13-27: WARNING: casting value returned by memory allocation function to (struct adapter *) is useless. This issue was detected by using the Coccinelle software. Signed-off-by: Christopher Diaz Riveros --- drivers/staging/r

[PATCH v3 12/15] memory: tegra: Add Tegra124 memory controller hot resets

2018-02-20 Thread Dmitry Osipenko
Define the table of memory controller hot resets for Tegra124. Signed-off-by: Dmitry Osipenko --- drivers/memory/tegra/tegra124.c | 42 + 1 file changed, 42 insertions(+) diff --git a/drivers/memory/tegra/tegra124.c b/drivers/memory/tegra/tegra124.c index

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

2018-02-20 Thread David Lechner
On 02/20/2018 04:39 AM, Philipp Zabel wrote: Hi Bartosz, David, On Mon, 2018-02-19 at 18:21 -0600, David Lechner wrote: On 02/19/2018 10:58 AM, Bartosz Golaszewski wrote: From: Bartosz Golaszewski The reset framework only supports device-tree. There are some platforms however, which need to

Re: [PATCH 6/6] sched/isolation: Update nohz documentation to explain tick offload

2018-02-20 Thread Frederic Weisbecker
On Sat, Feb 17, 2018 at 11:53:22AM +0100, Thomas Gleixner wrote: > On Thu, 15 Feb 2018, Frederic Weisbecker wrote: > > > Update the documentation to reflect the 1Hz tick offload changes. > > > > Signed-off-by: Frederic Weisbecker > > Cc: Chris Metcalf > > Cc: Christoph Lameter > > Cc: Luiz Cap

Re: [PATCH v2 1/2] mfd: arizona: Update reset pin to use GPIOD

2018-02-20 Thread kbuild test robot
Hi Charles, Thank you for the patch! Yet something to improve: [auto build test ERROR on ljones-mfd/for-mfd-next] [also build test ERROR on v4.16-rc2 next-20180220] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com

Re: [PATCH 5/6] Pmalloc: self-test

2018-02-20 Thread Igor Stoppa
On 13/02/18 01:43, Kees Cook wrote: > On Mon, Feb 12, 2018 at 8:53 AM, Igor Stoppa wrote: [...] >> +obj-$(CONFIG_PROTECTABLE_MEMORY_SELFTEST) += pmalloc-selftest.o > > Nit: self-test modules are traditionally named "test_$thing.o" > (outside of the tools/ directory). ok [...] > I wonder if

Re: [PATCH] pinctrl: msm: Use dynamic GPIO numbering

2018-02-20 Thread Timur Tabi
On 02/07/2018 07:52 AM, Linus Walleij wrote: OK I put this in devel for v4.17, let's see if something explodes in linux-next else we can go with this. Otherwise we need something that conserves base 0 for singular TLMM drivers and make it -1 for newer platforms with several instances. I don't

Re: [PATCH] ARM: make CONFIG_DEBUG_WX depend on MMU

2018-02-20 Thread Laura Abbott
On 02/20/2018 07:09 AM, Arnd Bergmann wrote: Without CONFIG_MMU, this results in a build failure: ./arch/arm/include/asm/memory.h:92:23: error: initializer element is not constant #define VECTORS_BASE vectors_base arch/arm/mm/dump.c:32:4: note: in expansion of macro 'VECTORS_BASE' { VECTO

Re: [PATCH v2 0/3] Support qcom pinctrl protected pins

2018-02-20 Thread Timur Tabi
On 01/25/2018 07:13 PM, Stephen Boyd wrote: This patchset proposes a solution to describing the valid pins for a pin controller in a semi-generic way so that qcom platforms can expose the pins that are really available. Typically, this has been done by having drivers and firmware descriptions on

Re: [PATCH v2 2/2] power: reset: gpio-poweroff: Add support for timeout from DT

2018-02-20 Thread Moritz Fischer
On Tue, Feb 20, 2018 at 04:12:59PM +0200, Andy Shevchenko wrote: > On Tue, Feb 20, 2018 at 12:59 AM, Moritz Fischer wrote: > > Add support for reading a timeout value from devicetree. > > Fall back to previous default of 3s if nothing is specified. > > > > + of_property_read_u32(pdev->dev.

Re: [PATCH v2 0/3] reset: simple: enable for ASPEED SoCs

2018-02-20 Thread Philipp Zabel
Hi Joel, On Tue, 2018-02-20 at 12:13 +1030, Joel Stanley wrote: > v2: Fix typos in bindings document, add Rob's ack > > This series that enables the simple reset driver for the ASPEED SoCs. Thanks, I have applied patches 1 (with fixup for a whitespace issue that git complained about) and 2 to th

RE: [PATCH] X86/UAPI: Use __u64 instead of u64 in hyperv.h

2018-02-20 Thread KY Srinivasan
> -Original Message- > From: KarimAllah Ahmed > Sent: Monday, February 19, 2018 11:40 PM > To: linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; > x...@kernel.org > Cc: KarimAllah Ahmed ; KY Srinivasan > ; Haiyang Zhang ; Stephen > Hemminger ; Thomas Gleixner > ; Ingo Molnar ;

Re: [PATCH 2/3] HID: steam: add serial number information.

2018-02-20 Thread Benjamin Tissoires
On Fri, Feb 16, 2018 at 9:59 PM, Rodrigo Rivas Costa wrote: > On Fri, Feb 16, 2018 at 11:38:11AM +0100, Benjamin Tissoires wrote: >> On Fri, Feb 16, 2018 at 10:57 AM, Rodrigo Rivas Costa >> wrote: >> > On Fri, Feb 16, 2018 at 10:31:35AM +0100, Benjamin Tissoires wrote: >> >> > Ok, I'll do that. T

Re: [PATCH 3/3] Kconfig: add a default allrandom.config

2018-02-20 Thread Masahiro Yamada
2018-02-20 20:11 GMT+09:00 Arnd Bergmann : > On Tue, Feb 20, 2018 at 10:16 AM, Masahiro Yamada > wrote: >> 2018-02-17 6:41 GMT+09:00 Arnd Bergmann : >>> Building randconfig kernels frequently leads to build errors from >>> drivers that have additional build dependencies, or that we don't >>> want

Re: [PATCH v2] kbuild: Don't source kernel config

2018-02-20 Thread Richard Weinberger
Am Dienstag, 20. Februar 2018, 17:30:10 CET schrieb Masahiro Yamada: > > That way the conf tool will sanitize the .config before shell scripts will > > source it. > > This approach seems better. Okay, let's go for it. :) I went first for the ugly bash approach because it is a white list and not a

Re: Applied "ASoC: topology: Add missing clock gating parameter when parsing hw_configs" to the asoc tree

2018-02-20 Thread Kirill Marinushkin
On 02/20/18 14:45, Mark Brown wrote: > On Tue, Feb 20, 2018 at 12:09:18PM +, Mark Brown wrote: >> The patch >> >>ASoC: topology: Add missing clock gating parameter when parsing hw_configs >> >> has been applied to the asoc tree at >> >>https://git.kernel.org/pub/scm/linux/kernel/git/bro

Re: [PATCH 2/6] genalloc: selftest

2018-02-20 Thread Igor Stoppa
On 13/02/18 01:50, Kees Cook wrote: > On Mon, Feb 12, 2018 at 8:52 AM, Igor Stoppa wrote: [...] >> lib/genalloc-selftest.c | 400 >> ++ > > Nit: make this test_genalloc.c instead. ok [...] >> + genalloc_selftest(); > > I wonder if it's

[PATCH v4 1/2] mfd: arizona: Update reset pin to use GPIOD

2018-02-20 Thread Charles Keepax
Now GPIOD has support for both pdata systems and for non-standard DT bindings the Arizona reset GPIO can be converted to use it. Signed-off-by: Charles Keepax --- Changes since v3: - Update header includes Thanks, Charles drivers/mfd/arizona-core.c| 53 ++-

[PATCH v4 2/2] mfd: arizona: Update DT doc to support more standard reset binding

2018-02-20 Thread Charles Keepax
Signed-off-by: Charles Keepax Reviewed-by: Rob Herring --- No changes since v3. Thanks, Charles Documentation/devicetree/bindings/mfd/arizona.txt | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mfd/arizona.txt b/Documentation/devicet

[PATCH 1/8] ARM: dts: artpec: disable Accelerator Coherency Port

2018-02-20 Thread Niklas Cassel
Accesses via 0x8000 go through the ACP instead of using the DDR directly. Unfortunately the ACP has proven to be the cause of complete system hangs. Disabling the ACP makes these problems go away. Signed-off-by: Niklas Cassel --- arch/arm/boot/dts/artpec6.dtsi | 3 +-- 1 file changed, 1 ins

[PATCH 0/8] ARTPEC-6 ARM SoC device tree updates

2018-02-20 Thread Niklas Cassel
Hello, Here comes some ARTPEC-6 ARM SoC device tree updates. Regards, Niklas Niklas Cassel (8): ARM: dts: artpec: disable Accelerator Coherency Port ARM: dts: artpec: use 1 GiB RAM ARM: dts: artpec: remove 0x prefix from clkctrl unit address ARM: dts: artpec: migrate ethernet to stmmac b

[PATCH 5/8] ARM: dts: artpec: add and utilize artpec6 pin controller

2018-02-20 Thread Niklas Cassel
Add node for the pin controller used in the artpec6 SoC, and start using it for the exising UARTs. Signed-off-by: Niklas Cassel --- arch/arm/boot/dts/artpec6.dtsi | 34 ++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/boot/dts/artpec6.dtsi b/arch/arm/boo

[PATCH 3/8] ARM: dts: artpec: remove 0x prefix from clkctrl unit address

2018-02-20 Thread Niklas Cassel
Remove 0x prefix from clkctrl unit address. This silences the following dtc warning: Warning (unit_address_format): Node /clkctrl@0xf800 unit name should not have leading "0x" Signed-off-by: Niklas Cassel --- arch/arm/boot/dts/artpec6.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 6/8] ARM: dts: artpec: add and utilize nbpfaxi DMA controllers

2018-02-20 Thread Niklas Cassel
Add nodes for the nbpfaxi DMA controllers used in the artpec6 SoC, and start using them for the exising UARTs. Signed-off-by: Niklas Cassel --- arch/arm/boot/dts/artpec6.dtsi | 58 ++ 1 file changed, 58 insertions(+) diff --git a/arch/arm/boot/dts/artpec6

[PATCH 8/8] ARM: dts: artpec: add node for hardware crypto accelerator

2018-02-20 Thread Niklas Cassel
Add node for the hardware crypto acceleration used in the artpec6 SoC. Signed-off-by: Niklas Cassel --- arch/arm/boot/dts/artpec6.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/artpec6.dtsi b/arch/arm/boot/dts/artpec6.dtsi index 8d02d210574a..c0bbdbc8c7ba 100644

[PATCH 7/8] ARM: dts: artpec: add disabled node for PCIe endpoint mode

2018-02-20 Thread Niklas Cassel
The PCIe controller in the artpec6 SoC supports both root complex and endpoint mode, however, the controller can only be used in one of the modes. Both pci nodes are disabled by default. A DTS file can enable one of them, depending on what mode it wants to run. Signed-off-by: Niklas Cassel ---

[PATCH 4/8] ARM: dts: artpec: migrate ethernet to stmmac binding

2018-02-20 Thread Niklas Cassel
The snps,dwc-qos-ethernet binding is still supported as a glue layer in the stmmac driver. However, since the snps,dwc-qos-ethernet binding is now deprecated, migrate to stmmac's native binding. At the same time, enable features supported by the stmmac driver, such as PTP, LPI, and an additional t

[PATCH 2/8] ARM: dts: artpec: use 1 GiB RAM

2018-02-20 Thread Niklas Cassel
There has never been an artpec6 devboard produced with less than 1 GiB RAM. Increase the default value to 1 GiB RAM, so that we can netboot with large initramfs without going OOM. Signed-off-by: Niklas Cassel --- arch/arm/boot/dts/artpec6-devboard.dts | 2 +- 1 file changed, 1 insertion(+), 1 d

Re: [PATCH v2 1/2] ASoC: topology: Add defines for snd_soc_tplg_hw_config.clock_gated

2018-02-20 Thread Kirill Marinushkin
On 02/19/18 21:36, Kirill Marinushkin wrote: > In kernel `soc-dai.h`, DAI clock gating is defined as following: > > > \#define SND_SOC_DAIFMT_CONT (1 << 4) /* continuous clock */ > \#define SND_SOC_DAIFMT_GATED (0 << 4) /* clock is gated */ > > > The corresponding field o

Re: [PATCH 2/3] Kconfig: improve handling for all{rand,yes,no,}.config fragments

2018-02-20 Thread Masahiro Yamada
2018-02-20 18:59 GMT+09:00 Arnd Bergmann : > On Tue, Feb 20, 2018 at 10:26 AM, Masahiro Yamada > wrote: >> 2018-02-17 6:41 GMT+09:00 Arnd Bergmann : > >>> @@ -621,14 +622,24 @@ int main(int ac, char **av) >>> case randconfig:name = "allrandom.config"; break; >>>

Re: [PATCH 4.10 070/111] audit: fix auditd/kernel connection state tracking

2018-02-20 Thread Paul Moore
On Tue, Feb 20, 2018 at 10:18 AM, Peter Zijlstra wrote: > On Tue, Feb 20, 2018 at 09:51:08AM -0500, Paul Moore wrote: >> On Tue, Feb 20, 2018 at 9:06 AM, Peter Zijlstra wrote: > >> > It's not at all clear to me what that code does, I just stumbled upon >> > __mutex_owner() outside of the mutex co

Re: [PATCH 2/2] ASoC: topology: Add missing clock gating parameter when parsing hw_configs

2018-02-20 Thread Kirill Marinushkin
On 02/19/18 07:05, Kirill Marinushkin wrote: > Clock gating parameter is a part of `dai_fmt`. It is supported by > `alsa-lib` when creating a topology binary file, but ignored by kernel > when loading this topology file. > > After applying this commit, the clock gating parameter is not ignored any

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

2018-02-20 Thread Shreeya Patel
On Mon, 2018-02-19 at 15:51 +0100, Boris Brezillon wrote: > Hi Shreeya, > > On Mon, 19 Feb 2018 18:43:45 +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. > >

Re: [PATCH 1/6] genalloc: track beginning of allocations

2018-02-20 Thread Igor Stoppa
On 13/02/18 01:52, Kees Cook wrote: > On Mon, Feb 12, 2018 at 8:52 AM, Igor Stoppa wrote: >> @@ -738,14 +1031,16 @@ EXPORT_SYMBOL(devm_gen_pool_create); >> >> #ifdef CONFIG_OF >> /** >> - * of_gen_pool_get - find a pool by phandle property >> + * of_gen_pool_get() - find a pool by phandle proper

Re: [PATCH v2] tpm: use kmemdup() to copy the event log

2018-02-20 Thread Jarkko Sakkinen
On Tue, 2018-02-20 at 15:26 +0100, Javier Martinez Canillas wrote: > On 02/20/2018 12:41 PM, Jarkko Sakkinen wrote: > > Replaced kmalloc() + memcpy() in tpm_eventlog_efi.c and > > tpm_eventlog_of.c. > > > > Signed-off-by: Jarkko Sakkinen > > --- > > Looks good to me. > > Reviewed-by: Javier Mar

Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-20 Thread Thomas Gleixner
On Tue, 13 Feb 2018, Reinette Chatre wrote: > static void __pseudo_lock_region_release(struct pseudo_lock_region *plr) > { > bool is_new_plr = (plr == new_plr); > @@ -93,6 +175,23 @@ static void __pseudo_lock_region_release(struct > pseudo_lock_region *plr) > if (!plr->deleted) >

Re: [kernel-hardening] [PATCH 4/6] Protectable Memory

2018-02-20 Thread Igor Stoppa
On 13/02/18 20:10, Laura Abbott wrote: > On 02/13/2018 07:20 AM, Igor Stoppa wrote: >> Why alterations of page properties are not considered a risk and the physmap >> is? >> And how would it be easier (i suppose) to attack the latter? > > Alterations are certainly a risk but with the physmap th

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

2018-02-20 Thread Boris Brezillon
On Tue, 20 Feb 2018 22:36:41 +0530 Shreeya Patel wrote: > On Mon, 2018-02-19 at 15:51 +0100, Boris Brezillon wrote: > > Hi Shreeya, > > > > On Mon, 19 Feb 2018 18:43:45 +0530 > > Shreeya Patel wrote: > > > > > > > > The log levels embedded with the name are more concise than > > > printk. >

Re: [RFC PATCH V2 11/22] x86/intel_rdt: Associate pseudo-locked regions with its domain

2018-02-20 Thread Thomas Gleixner
On Tue, 20 Feb 2018, Reinette Chatre wrote: > On 2/20/2018 2:00 AM, Thomas Gleixner wrote: > > On Mon, 19 Feb 2018, Reinette Chatre wrote: > >> In addition to the above research from my side I also followed up with > >> the CPU architects directly to question the usage of these instructions > >> in

Re: [PATCH v4 1/2] ACPI / x86: boot: Not all platforms require acpi_reduced_hw_init()

2018-02-20 Thread Andy Shevchenko
On Tue, 2018-02-20 at 17:27 +0100, Rafael J. Wysocki wrote: > On Tue, Feb 20, 2018 at 5:03 PM, Andy Shevchenko > wrote: > > Some platforms might take care of legacy devices on theirs own. Due > > to this, > > export acpi_reduced_hw_init() and put it into struct x86_init_acpi. > > IMO this complet

Re: [PATCH] max17042: propagate of_node to power supply device

2018-02-20 Thread Andy Shevchenko
On Tue, Feb 20, 2018 at 5:03 PM, Pierre Bourdon wrote: > max17042_get_status uses the core power_supply_am_i_supplied. That > function relies on DT properties to figure out the power supply > topology, and will error out without DT. > + psy_cfg.of_node = dev->of_node; Perhaps do this in ge

[PATCH v4 3/3] extable: Make init_kernel_text() global

2018-02-20 Thread Josh Poimboeuf
Convert init_kernel_text() to a global function and use it in a few places instead of manually comparing _sinittext and _einittext. Note that kallsyms.h has a very similar function called is_kernel_inittext(), but its end check is inclusive. I'm not sure whether that's intentional behavior, so I

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

2018-02-20 Thread Shreeya Patel
On Tue, 2018-02-20 at 18:16 +0100, Boris Brezillon wrote: > On Tue, 20 Feb 2018 22:36:41 +0530 > Shreeya Patel wrote: > > > > > On Mon, 2018-02-19 at 15:51 +0100, Boris Brezillon wrote: > > > > > > Hi Shreeya, > > > > > > On Mon, 19 Feb 2018 18:43:45 +0530 > > > Shreeya Patel wrote: > > >   

[PATCH v4 1/2] dt-bindings: net: Add bindings for National Instruments XGE netdev

2018-02-20 Thread Moritz Fischer
This adds bindings for the NI XGE 1G/10G network device. Reviewed-by: Rob Herring Signed-off-by: Moritz Fischer --- Changes from v3: - Added Rob's Reviewed-by Changes from v2: - Addressed Rob's comments w.r.t to IRQ names and typo Changes from v1: - Corrected from nixge -> nixge.txt --- Docu

[PATCH v4 0/3] jump_label: Robustify jump label patching

2018-02-20 Thread Josh Poimboeuf
v4: - Fix CONFIG_MODULES=n build by moving jump_label_invalidate_init() outside of the CONFIG_MODULES ifdef guard (reported by 0-day bot) v3: - Make init_kernel_text() global - Use braces in multi-line 'for' statements v2: - Refine the warning so that it doesn't warn about __init entries - (Do

[PATCH v4 2/2] net: ethernet: nixge: Add support for National Instruments XGE netdev

2018-02-20 Thread Moritz Fischer
Add support for the National Instruments XGE 1/10G network device. It uses the EEPROM on the board via NVMEM. Signed-off-by: Moritz Fischer --- Changes from v3: - Added NIXGE prefix to MDIO constants - Removed NIXGE_MAX_PHY_ADDR (unused) - Consistency for NIXGE_MDIO_CXX_READ constants - Use dev

[PATCH v4 2/3] jump_label: Warn on failed jump_label patch

2018-02-20 Thread Josh Poimboeuf
When the jump label code encounters an address which isn't recognized by kernel_text_address(), it just silently fails. This can be dangerous because jump labels are used in a variety of places, and are generally expected to work. Convert the silent failure to a warning. This won't warn about at

[PATCH v4 1/3] jump_label: Explicitly disable jump labels in __init code

2018-02-20 Thread Josh Poimboeuf
After initmem has been freed, any jump labels in __init code are prevented from being written to by the kernel_text_address() check in __jump_label_update(). However, this check is quite broad. If kernel_text_address() were to return false for any other reason, the jump label write would fail sil

[RESEND PATCH v2 1/2] ASoC: topology: Add defines for snd_soc_tplg_hw_config.clock_gated

2018-02-20 Thread Kirill Marinushkin
In kernel `soc-dai.h`, DAI clock gating is defined as following: \#define SND_SOC_DAIFMT_CONT(1 << 4) /* continuous clock */ \#define SND_SOC_DAIFMT_GATED (0 << 4) /* clock is gated */ The corresponding field of struct snd_soc_tplg_hw_config cannot be used as bool

[RESEND PATCH v2 0/2] ASoC: topology: Add parsing clock gating

2018-02-20 Thread Kirill Marinushkin
This patch series adds parsing the topology clock gating parameter, which is currently can be set by alsa-lib, but ignored by kernel. The patch 1/2 modifies the UAPI header. If it is applied, the corresponded patch should be applied in alsa-lib [2]. Related, but not required alsa-lib patch: [1].

[RESEND PATCH v2 2/2] ASoC: topology: Add missing clock gating parameter when parsing hw_configs

2018-02-20 Thread Kirill Marinushkin
Clock gating parameter is a part of `dai_fmt`. It is supported by `alsa-lib` when creating a topology binary file, but ignored by kernel when loading this topology file. After applying this commit, the clock gating parameter is not ignored any more. The old behaviour is not broken, as by default t

Re: [PATCH 1/6] powerpc/mm/32: Use pfn_valid to check if pointer is in RAM

2018-02-20 Thread christophe leroy
Le 20/02/2018 à 17:14, Jonathan Neuschäfer a écrit : The Nintendo Wii has a memory layout that places two chunks of RAM at non-adjacent addresses, and MMIO between them. Currently, the allocation of these MMIO areas is made possible by declaring the MMIO hole as reserved memory and allowing res

Re: [PATCH 2/3] HID: steam: add serial number information.

2018-02-20 Thread Rodrigo Rivas Costa
On Tue, Feb 20, 2018 at 05:49:02PM +0100, Benjamin Tissoires wrote: > On Fri, Feb 16, 2018 at 9:59 PM, Rodrigo Rivas Costa > > But about that +7 in hid_alloc_report_buf(), isn't it to make room for > > the implement()/extract() functions? And IIUIC those are not used for > > raw_requests... they ar

Re: ipmi_si fails to get BMC ID

2018-02-20 Thread Chris Chiu
On Thu, Feb 15, 2018 at 1:17 AM, Corey Minyard wrote: > I'm removing Greg and Arnd from the email, I don't think this requires their > participation. > > > > > On 02/13/2018 08:44 PM, Chris Chiu wrote: >> >> On Fri, Feb 9, 2018 at 9:34 PM, Corey Minyard wrote: >>> >>> On 02/08/2018 09:09 PM, Chri

Re: [PATCH] rds: send: mark expected switch fall-through in rds_rm_size

2018-02-20 Thread Santosh Shilimkar
Hi, 2/19/2018 10:10 AM, Gustavo A. R. Silva wrote: In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 1465362 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva --- net/rds/send.c | 2 ++ 1 file cha

Re: [PATCH] max17042: propagate of_node to power supply device

2018-02-20 Thread Pierre Bourdon (delroth)
On Tue, Feb 20, 2018 at 6:34 PM, Andy Shevchenko wrote: > On Tue, Feb 20, 2018 at 5:03 PM, Pierre Bourdon wrote: >> max17042_get_status uses the core power_supply_am_i_supplied. That >> function relies on DT properties to figure out the power supply >> topology, and will error out without DT. > >

Re: [PATCH] rds: send: mark expected switch fall-through in rds_rm_size

2018-02-20 Thread David Miller
From: Santosh Shilimkar Date: Tue, 20 Feb 2018 09:54:09 -0800 > So coverity greps for commet as "fall through" for > -Wimplicit-fallthrough build ? >From what I understand, 'gcc' does in the latest versions. Coverity might as well, I don't know.

Re: [RFC PATCH v16 0/6] mm: security: ro protection for dynamic data

2018-02-20 Thread Igor Stoppa
On 20/02/18 03:21, Dave Chinner wrote: > On Mon, Feb 12, 2018 at 03:32:36PM -0800, Kees Cook wrote: >> On Mon, Feb 12, 2018 at 8:52 AM, Igor Stoppa wrote: >>> This patch-set introduces the possibility of protecting memory that has >>> been allocated dynamically. >>> >>> The memory is managed in

Re: [PATCH 2/2] i2c: add support for Socionext SynQuacer I2C controller

2018-02-20 Thread Ard Biesheuvel
On 20 February 2018 at 14:02, Andy Shevchenko wrote: > On Tue, Feb 20, 2018 at 11:08 AM, Ard Biesheuvel > wrote: >> This is a cleaned up version of the I2C controller driver for >> the Fujitsu F_I2C IP, which was never supported upstream, and >> has now been incorporated into the Socionext SynQua

[PATCH v5 2/3] ACPI / x86: boot: Not all platforms require acpi_generic_reduced_hw_init()

2018-02-20 Thread Andy Shevchenko
Some ACPI hardware reduced platforms need to initialize certain devices defined by the ACPI hardware specification even though in principle those devices should not be present in an ACPI hardware reduced platform. To allow that to happen, make it possible to override the generic x86_init callbacks

[PATCH v5 1/3] ACPI / x86: boot: Split out acpi_generic_reduce_hw_init() and export

2018-02-20 Thread Andy Shevchenko
This is a preparation patch to allow override the hardware reduced initialization on ACPI enabled platforms. No functional change intended. Signed-off-by: Andy Shevchenko --- arch/x86/include/asm/acpi.h | 4 arch/x86/kernel/acpi/boot.c | 22 +- 2 files changed, 17 inse

Re: [PATCH] rds: send: mark expected switch fall-through in rds_rm_size

2018-02-20 Thread Gustavo A. R. Silva
Hi Santosh, On 02/20/2018 11:54 AM, Santosh Shilimkar wrote: Hi, 2/19/2018 10:10 AM, Gustavo A. R. Silva wrote: In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 1465362 ("Missing break in switch") Signed-off-by

[PATCH v5 3/3] x86/platform/intel-mid: Add special handling of ACPI HW reduced platforms

2018-02-20 Thread Andy Shevchenko
When switching to ACPI HW reduced platforms we still want to initialize timers. Override x86_init.acpi.reduced_hw_init to achieve that. Signed-off-by: Andy Shevchenko --- arch/x86/platform/intel-mid/intel-mid.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/x86/platform/intel-mid

Re: [PATCH v3 6/7] arm: dts: sun8i: a83t: Fix undefined offset with virtual timer

2018-02-20 Thread Marc Zyngier
Hi Mylène, On 19/02/18 08:18, Mylène Josserand wrote: > The ARM architected timers use an offset between their physical and > virtual counters. That offset should be configured by the bootloader > in CNTVOFF. > > However, the A83t bootloader fails to do so, and we end up with an > undefined offse

Re: [PATCH] rds: send: mark expected switch fall-through in rds_rm_size

2018-02-20 Thread Gustavo A. R. Silva
On 02/20/2018 12:01 PM, David Miller wrote: From: Santosh Shilimkar Date: Tue, 20 Feb 2018 09:54:09 -0800 So coverity greps for commet as "fall through" for -Wimplicit-fallthrough build ? From what I understand, 'gcc' does in the latest versions. Coverity might as well, I don't know.

Re: [PATCH v2] usb: host: ehci-platform: add support for optional external vbus supply

2018-02-20 Thread Alan Stern
On Tue, 20 Feb 2018, Roger Quadros wrote: > On 20/02/18 16:46, Amelie DELAUNAY wrote: > > Hi, > > > > On 02/20/2018 03:00 PM, Roger Quadros wrote: > >> Hi, > >> > >> On 20/02/18 14:58, Amelie Delaunay wrote: > >>> On some boards, especially when vbus supply requires large current, > >>> and the c

Re: WARNING and PANIC in irq_matrix_free

2018-02-20 Thread Thomas Gleixner
On Tue, 20 Feb 2018, Tariq Toukan wrote: > Hi Thomas, > > We started seeing new issues in our net-device daily regression tests. > They are related to patch [1] introduced in kernel 4.15-rc1. > > We frequently see a warning in dmesg [2]. Repro is not consistent, we tried to > narrow it down to a

Re: [PATCH-next] staging: rtl8188eu: Remove unneeded cast

2018-02-20 Thread Larry Finger
On 02/20/2018 10:37 AM, Christopher Diaz Riveros wrote: Fix Coccinelle alert: drivers/staging//rtl8188eu/os_dep/usb_intf.c:336:13-27: WARNING: casting value returned by memory allocation function to (struct adapter *) is useless. This issue was detected by using the Coccinelle software. Signe

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

2018-02-20 Thread Bjorn Helgaas
On Tue, Feb 20, 2018 at 10:41:33AM +0100, Rafael J. Wysocki wrote: > On Tue, Feb 20, 2018 at 12:14 AM, Bjorn Helgaas wrote: > > From: Bjorn Helgaas > > > > Previously "pcie_port_pm=force" enabled power management of PCI bridges, > > but only for PCIe ports (not conventional PCI bridges) and only

Re: WARNING and PANIC in irq_matrix_free

2018-02-20 Thread Thomas Gleixner
On Tue, 20 Feb 2018, Thomas Gleixner wrote: > On Tue, 20 Feb 2018, Tariq Toukan wrote: > > Is there CPU hotplugging in play? > > I'll come back to you tomorrow with a plan how to debug that after staring > into the code some more. Do you have a rough idea what the test case is doing? Thanks,

[PATCH] pinctrl: samsung: Validate alias coming from DT

2018-02-20 Thread Krzysztof Kozlowski
Driver uses alias from Device Tree as an index of pin controller data array. In case of a wrong DTB or an out-of-tree DTB, the alias could be outside of this data array leading to out-of-bounds access. Depending on binary and memory layout, this could be handled properly (showing error like "sams

Re: [PATCH 4/7] sched/fair: Avoid unnecessary balancing of asymmetric capacity groups

2018-02-20 Thread Peter Zijlstra
On Tue, Feb 20, 2018 at 04:33:52PM +, Morten Rasmussen wrote: > On Mon, Feb 19, 2018 at 04:10:11PM +0100, Peter Zijlstra wrote: > > On Thu, Feb 15, 2018 at 04:20:51PM +, Morten Rasmussen wrote: > > > +/* > > > + * group_similar_cpu_capacity: Returns true if the minimum capacity of > > > th

Re: [PATCH] locking/ww_mutex: add ww_mutex_is_owned_by function v4

2018-02-20 Thread kbuild test robot
Hi Christian, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.16-rc2 next-20180220] [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

Re: [PATCH v2 05/19] pinctrl: sh-pfc: Initial R-Car M3-N support

2018-02-20 Thread Geert Uytterhoeven
Hi Jacopo, On Tue, Feb 20, 2018 at 4:12 PM, Jacopo Mondi wrote: > Add initial PFC support for R-Car M3-N (r8a77965) SoC. > No groups or functions defined, just pin and registers enumeration. > > Signed-off-by: Jacopo Mondi > Reviewed-by: Rob Herring > > --- > v1 -> v2: > > Applied the following

Re: [PATCH v2 13/19] pinctrl: sh-pfc: r8a77965: Add SCIFs groups/functions

2018-02-20 Thread Geert Uytterhoeven
On Tue, Feb 20, 2018 at 4:12 PM, Jacopo Mondi wrote: > Add SCIF[0-5] groups and pin function definitions for R-Car M3-N. > > Signed-off-by: Jacopo Mondi > Reviewed-by: Geert Uytterhoeven Queueing in sh-pfc-for-v4.17. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- T

Re: [PATCH v2 18/19] pinctrl: sh-pfc: r8a77965: Add EtherAVB groups/functions

2018-02-20 Thread Geert Uytterhoeven
On Tue, Feb 20, 2018 at 4:12 PM, Jacopo Mondi wrote: > Add EtherAVB groups and functions definitions for R-Car M3-N. > > Signed-off-by: Jacopo Mondi > Reviewed-by: Geert Uytterhoeven Queueing in sh-pfc-for-v4.17. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There

[PATCH] doc-guide: kernel-doc: add comment about formatting verification

2018-02-20 Thread Mike Rapoport
Currently there is no automated checking for kernel-doc comments except running 'kernel-doc -v -none '. Mention the possibility to run kernel-doc to verify formatting of the comments in the kernel-doc guide. Signed-off-by: Mike Rapoport --- v2: * fix typo * add a sentence about using 'make W=n'

Re: [PATCH] pinctrl: samsung: Validate alias coming from DT

2018-02-20 Thread Geert Uytterhoeven
On Tue, Feb 20, 2018 at 7:17 PM, Krzysztof Kozlowski wrote: > Driver uses alias from Device Tree as an index of pin controller data > array. In case of a wrong DTB or an out-of-tree DTB, the alias could be > outside of this data array leading to out-of-bounds access. > > Depending on binary and m

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

2018-02-20 Thread David Lechner
On 02/20/2018 07:33 AM, Bartosz Golaszewski wrote: 2018-02-19 21:21 GMT+01:00 David Lechner : This series converts mach-davinci to use the common clock framework. Hi David, just some quick results from today's playing with v7. I started out with da850-lcdk with my standard rootfs over NFS.

Re: [PATCH] rds: send: mark expected switch fall-through in rds_rm_size

2018-02-20 Thread Santosh Shilimkar
On 2/20/2018 10:01 AM, David Miller wrote: From: Santosh Shilimkar Date: Tue, 20 Feb 2018 09:54:09 -0800 So coverity greps for commet as "fall through" for -Wimplicit-fallthrough build ? From what I understand, 'gcc' does in the latest versions. Coverity might as well, I don't know. Good

Re: [PATCH v5 1/3] ACPI / x86: boot: Split out acpi_generic_reduce_hw_init() and export

2018-02-20 Thread Rafael J. Wysocki
On Tue, Feb 20, 2018 at 7:05 PM, Andy Shevchenko wrote: > This is a preparation patch to allow override the hardware reduced > initialization on ACPI enabled platforms. > > No functional change intended. > > Signed-off-by: Andy Shevchenko Reviewed-by: Rafael J. Wysocki > --- > arch/x86/includ

Re: [PATCH v5 2/3] ACPI / x86: boot: Not all platforms require acpi_generic_reduced_hw_init()

2018-02-20 Thread Rafael J. Wysocki
On Tue, Feb 20, 2018 at 7:05 PM, Andy Shevchenko wrote: > Some ACPI hardware reduced platforms need to initialize certain devices > defined by the ACPI hardware specification even though in principle > those devices should not be present in an ACPI hardware reduced platform. > > To allow that to h

Re: [PATCH] rds: send: mark expected switch fall-through in rds_rm_size

2018-02-20 Thread Santosh Shilimkar
On 2/20/2018 10:05 AM, Gustavo A. R. Silva wrote: Hi Santosh, On 02/20/2018 11:54 AM, Santosh Shilimkar wrote: Hi, 2/19/2018 10:10 AM, Gustavo A. R. Silva wrote: In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID

<    1   2   3   4   5   6   7   8   9   >