Re: [PATCH v2] greybus: checkpatch: Change parameter type unsigned to unsigned int

2017-01-11 Thread roman . sommer
> You forgot to fix the Subject prefix ("staging: greybus: "). > > Care to fix that up and resend? > > Thanks, > Johan > As I added the fix for loopback.c, I did not include the "gpio" prefix. This is what I thought was correct after reading your last mail. Apparently I misunderstood. What should

Re: [PATCHv3 3/5] pinctrl: mvebu: pinctrl driver for 98DX3236 SoC

2017-01-11 Thread Linus Walleij
On Fri, Jan 6, 2017 at 5:15 AM, Chris Packham wrote: > From: Kalyan Kinthada > > This pinctrl driver supports the 98DX3236, 98DX3336 and 98DX4251 SoCs > from Marvell. > > Signed-off-by: Kalyan Kinthada > Signed-off-by: Chris Packham I am waiting for an ACK or comment from the maintainers on t

Re: [PATCH] afs: correctly use 64-bit time for UUID

2017-01-11 Thread David Howells
Arnd Bergmann wrote: > > Is it worth abstracting out in-kernel UUID generation? > > Do you mean moving it out of AFS into lib/*.c? I think the 'afs_uuid' > structure is quite different from other UUID definitions, so that wouldn't > work. afs_uuid is as it is to make it easier to package into t

Re: [PATCH v2] greybus: checkpatch: Change parameter type unsigned to unsigned int

2017-01-11 Thread roman . sommer
>> You forgot to fix the Subject prefix ("staging: greybus: "). >> >> Care to fix that up and resend? >> >> Thanks, >> Johan >> > > As I added the fix for loopback.c, I did not include the "gpio" prefix. > This is what I thought was correct after reading your last mail. > Apparently I misunderstood

Re: [PATCH] cgroup: move CONFIG_SOCK_CGROUP_DATA to init/Kconfig

2017-01-11 Thread David Miller
From: Arnd Bergmann Date: Tue, 10 Jan 2017 13:08:06 +0100 > We now 'select SOCK_CGROUP_DATA' but Kconfig complains that this is > not right when CONFIG_NET is disabled and there is no socket interface: > > warning: (CGROUP_BPF) selects SOCK_CGROUP_DATA which has unmet direct > dependencies (NET

Re: [PATCH v4 0/3] perf: add support for analyzing events for containers

2017-01-11 Thread Eric W. Biederman
Aravinda Prasad writes: > On Wednesday 04 January 2017 02:34 PM, Krister Johansen wrote: >> On Tue, Jan 03, 2017 at 04:57:54PM +0530, Hari Bathini wrote: >>> On Thursday 29 December 2016 07:11 AM, Krister Johansen wrote: On Fri, Dec 16, 2016 at 12:06:55AM +0530, Hari Bathini wrote: > Thi

[PATCH] x86/e820: fix e820_search_gap() error handling on x86-32

2017-01-11 Thread Arnd Bergmann
gcc correctly points out that on 32-bit kernels, e820_search_gap() not finding a start now leads to pci_mem_start being set to an uninitialized value: arch/x86/kernel/e820.c: In function 'e820_setup_gap': arch/x86/kernel/e820.c:641:16: error: 'gapstart' may be used uninitialized in this function

Re: [PATCH 56/62] watchdog: tangox_wdt: Convert to use device managed functions

2017-01-11 Thread Vladimir Zapolskiy
Hello Uwe, On 01/11/2017 04:39 PM, Uwe Kleine-König wrote: > On Wed, Jan 11, 2017 at 01:31:47PM +0100, Marc Gonzalez wrote: >> On 11/01/2017 11:52, Guenter Roeck wrote: >> >>> On 01/11/2017 01:07 AM, Marc Gonzalez wrote: >>> > @@ -134,12 +134,15 @@ static int tangox_wdt_probe(struct platform_d

Re: [PATCH 56/62] watchdog: tangox_wdt: Convert to use device managed functions

2017-01-11 Thread Måns Rullgård
Guenter Roeck writes: > On 01/11/2017 04:31 AM, Marc Gonzalez wrote: >> On 11/01/2017 11:52, Guenter Roeck wrote: >> >>> On 01/11/2017 01:07 AM, Marc Gonzalez wrote: >>> > @@ -134,12 +134,15 @@ static int tangox_wdt_probe(struct platform_device > *pdev) > err = clk_prepare_enable(d

Re: [PATCH 8/8] efi: Add EFI_SECURE_BOOT bit [ver #6]

2017-01-11 Thread Matt Fleming
On Thu, 08 Dec, at 12:31:08PM, David Howells wrote: > From: Josh Boyer > > UEFI machines can be booted in Secure Boot mode. Add a EFI_SECURE_BOOT bit > that can be passed to efi_enabled() to find out whether secure boot is > enabled. > > This will be used by the SysRq+x handler, registered by t

[PATCH] power: supply: axp20x_usb_power: fix 64-bit build warning

2017-01-11 Thread Arnd Bergmann
Casting a pointer to 'int' is not always valid: drivers/power/supply/axp20x_usb_power.c: In function 'axp20x_usb_power_probe': drivers/power/supply/axp20x_usb_power.c:297:21: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] This makes the code use uintptr_t exp

[PATCH] staging: rtl: fix possible NULL pointer dereference

2017-01-11 Thread Arnd Bergmann
gcc-7 detects that wlanhdr_to_ethhdr() in two drivers calls memcpy() with a destination argument that an earlier function call may have set to NULL: staging/rtl8188eu/core/rtw_recv.c: In function 'wlanhdr_to_ethhdr': staging/rtl8188eu/core/rtw_recv.c:1318:2: warning: argument 1 null where non-nul

Re: [RFC PATCH v2] crypto: Add IV generation algorithms

2017-01-11 Thread Ondrej Mosnáček
Hi Binoy, 2016-12-13 9:49 GMT+01:00 Binoy Jayan : > Currently, the iv generation algorithms are implemented in dm-crypt.c. > The goal is to move these algorithms from the dm layer to the kernel > crypto layer by implementing them as template ciphers so they can be > implemented in hardware for per

Re: [PATCH] fbcon: Fix vc attr at deinit

2017-01-11 Thread Bartlomiej Zolnierkiewicz
Hi, On Tuesday, January 10, 2017 05:09:43 PM Bartlomiej Zolnierkiewicz wrote: > > Hi, > > On Tuesday, January 10, 2017 04:47:30 PM Takashi Iwai wrote: > > On Thu, 05 Jan 2017 13:26:07 +0100, > > Tomi Valkeinen wrote: > > > > > > On 04/01/17 15:50, Takashi Iwai wrote: > > > > On Tue, 03 Jan 201

[PATCH] lkdtm: hide stack overflow warning for corrupt-stack test

2017-01-11 Thread Arnd Bergmann
After the latest change to make sure the compiler actually does a memset, it is now smart enough to flag the stack overflow at compile time, at least with gcc-7.0: drivers/misc/lkdtm_bugs.c: In function 'lkdtm_CORRUPT_STACK': drivers/misc/lkdtm_bugs.c:88:144: warning: 'memset' writing 64 bytes int

[PATCH/RESEND v2 0/5] z3fold optimizations and fixes

2017-01-11 Thread Vitaly Wool
This is a consolidation of z3fold optimizations and fixes done so far, revised after comments from Dan ([1], [2], [3], [4]). The coming patches are to be applied on top of the following commit: Author: zhong jiang Date: Tue Dec 20 11:53:40 2016 +1100 mm/z3fold.c: limit first_num to the ac

Re: [PATCH] ASoC: rt5651: use msleep for large delays

2017-01-11 Thread Mark Brown
On Wed, Jan 11, 2017 at 12:49:36PM +0100, Nicholas Mc Guire wrote: > if (!rt5651->hp_mute) > - usleep_range(8, 85000); > + msleep(85); If you're doing conversions like this I'd expect us to be picking the lower number rather than the highe

Re: Perf hotplug lockup in v4.9-rc8

2017-01-11 Thread Mark Rutland
Hi Peter, Sorry for the delay; this fell into my backlog over the holiday. On Fri, Dec 09, 2016 at 02:59:00PM +0100, Peter Zijlstra wrote: > So while I went back and forth trying to make that less ugly, I figured > there was another problem. > > Imagine the cpu_function_call() hitting the 'right

Re: [PATCH] wext: handle NULL exta data in iwe_stream_add_point better

2017-01-11 Thread Arnd Bergmann
On Wed, Jan 11, 2017 at 3:38 PM, Johannes Berg wrote: > On Wed, 2017-01-11 at 15:35 +0100, Arnd Bergmann wrote: >> This works fine here because iwe->u.data.length is guaranteed to be >> NULL, and the memcpy doesn't actually have an effect. > > I think you mean 0, not NULL, but I can fix that when

[PATCH] rtc: armada38x: hide maybe-uninitialized warning

2017-01-11 Thread Arnd Bergmann
The function is too complicated for gcc to realize that this variable does eventually get initialized, causing a harmless warning: drivers/rtc/rtc-armada38x.c: In function 'read_rtc_register_wa': drivers/rtc/rtc-armada38x.c:131:25: warning: 'index_max' may be used uninitialized in this function [

[PATCH v3] staging: greybus: checkpatch: Change parameter type unsigned to unsigned int

2017-01-11 Thread Roman Sommer
Note that this patch does not fix all checkpatch warnings for the affected files. Signed-off-by: Christian Bewermeyer Signed-off-by: Roman Sommer --- drivers/staging/greybus/gpio.c | 24 drivers/staging/greybus/loopback.c | 2 +- 2 files changed, 13 insertions(+),

Re: [PATCH] sctp: Fix spelling mistake: "Atempt" -> "Attempt"

2017-01-11 Thread David Miller
From: Colin King Date: Tue, 10 Jan 2017 22:53:06 + > From: Colin Ian King > > Trivial fix to spelling mistake in WARN_ONCE message > > Signed-off-by: Colin Ian King Applied, thanks.

Re: [PATCH] gpio: Remove impossible checks on container_of() result

2017-01-11 Thread Linus Walleij
On Mon, Jan 9, 2017 at 8:47 PM, Stephen Boyd wrote: > container_of() does pointer math on the pointer that's passed in. > If it were to return a NULL pointer the value passed in would > need to be perfectly offset from 0 to make that so. Remove these > checks because they don't make sense. > > Si

[PATCH RFC] ASoC: rt5663: use msleep() for uncritical delay

2017-01-11 Thread Nicholas Mc Guire
ms ok in this case, presumably there are very few systems running audio subsystem that have HZ=100 set. Patch was compile tested with: x86_64_defconfig + CONFIG_COMPILE_TEST=y SND_SOC=m + SND_SOC_ALL_CODECS=m (implies SND_SOC_RT5663=m) Patch is aginast 4.10-rc3 (localversion-next is next-20170111)

Re: [PATCH 0/8] efi: Pass secure boot mode to kernel [ver #6]

2017-01-11 Thread Matt Fleming
On Thu, 08 Dec, at 12:30:08PM, David Howells wrote: > > Here's a set of patches that can determine the secure boot state of the > UEFI BIOS and pass that along to the main kernel image. This involves > generalising ARM's efi_get_secureboot() function and making it mixed-mode > safe. This version

[PATCH] softingcs: ret is never non-zero, so remove non-zero check and -ENODEV return

2017-01-11 Thread Colin King
From: Colin Ian King The error return ret is never zero in the error handling path in softingcs_probe, so the check for non-zero and returning -ENODEV is logically dead code and hence redundant. Remove it and just return ret. Signed-off-by: Colin Ian King --- drivers/net/can/softing/softing_c

[PATCH RFC] ASoC: rt5663: use msleep() for long delay loop

2017-01-11 Thread Nicholas Mc Guire
E_TEST=y SND_SOC=m + SND_SOC_ALL_CODECS=m (implies SND_SOC_RT5663=m) Patch is aginast 4.10-rc3 (localversion-next is next-20170111) sound/soc/codecs/rt5663.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/sound/soc/codecs/rt5663.c b/sound/soc/codecs/rt5663.c index a3250

Re: [RFC v4 0/6] CPU reclaiming for SCHED_DEADLINE

2017-01-11 Thread Juri Lelli
On 11/01/17 13:39, Luca Abeni wrote: > Hi Juri, > (I reply from my new email address) > > On Wed, 11 Jan 2017 12:19:51 + > Juri Lelli wrote: > [...] > > > > For example, with my taskset, with a hypothetical perfect balance > > > > of the whole runqueue, one possible scenario is: > > > > > > >

Re: [PATCH v6] drm: add fourcc codes for 16bit R and RG

2017-01-11 Thread Ville Syrjälä
On Thu, Jan 05, 2017 at 02:45:37PM +0100, Christian König wrote: > Am 05.01.2017 um 12:37 schrieb Ville Syrjälä: > > On Wed, Jan 04, 2017 at 07:38:55PM +0100, Rainer Hochecker wrote: > >> From: Rainer Hochecker > >> > >> This adds fourcc codes for 16bit planes required for DRM buffer > >> export t

Re: [PATCH 0/8] efi: Pass secure boot mode to kernel [ver #6]

2017-01-11 Thread Ard Biesheuvel
On 11 January 2017 at 15:01, Matt Fleming wrote: > On Thu, 08 Dec, at 12:30:08PM, David Howells wrote: >> >> Here's a set of patches that can determine the secure boot state of the >> UEFI BIOS and pass that along to the main kernel image. This involves >> generalising ARM's efi_get_secureboot()

[PATCH/RESEND v2 2/5] z3fold: fix header size related issues

2017-01-11 Thread Vitaly Wool
Currently the whole kernel build will be stopped if the size of struct z3fold_header is greater than the size of one chunk, which is 64 bytes by default. This patch instead defines the offset for z3fold objects as the size of the z3fold header in chunks. Fixed also are the calculation of num_free_

[PATCH/RESEND v2 5/5] z3fold: add kref refcounting

2017-01-11 Thread Vitaly Wool
With both coming and already present locking optimizations, introducing kref to reference-count z3fold objects is the right thing to do. Moreover, it makes buddied list no longer necessary, and allows for a simpler handling of headless pages. Signed-off-by: Vitaly Wool --- mm/z3fold.c | 145

Re: [PATCH] wext: handle NULL exta data in iwe_stream_add_point better

2017-01-11 Thread Johannes Berg
On Wed, 2017-01-11 at 16:00 +0100, Arnd Bergmann wrote: > On Wed, Jan 11, 2017 at 3:38 PM, Johannes Berg > wrote: > > On Wed, 2017-01-11 at 15:35 +0100, Arnd Bergmann wrote: > > > This works fine here because iwe->u.data.length is guaranteed to > > > be > > > NULL, and the memcpy doesn't actually

[PATCH v7 03/15] ACPI: IORT: minor cleanup for iort_match_node_callback()

2017-01-11 Thread Hanjun Guo
Cleanup iort_match_node_callback() a little bit to reduce some lines of code. Signed-off-by: Hanjun Guo Cc: Lorenzo Pieralisi Cc: Tomasz Nowicki --- drivers/acpi/arm64/iort.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/ar

[PATCH v7 00/15] ACPI platform MSI support and its example mbigen

2017-01-11 Thread Hanjun Guo
With platform msi support landed in the kernel, and the introduction of IORT for GICv3 ITS (PCI MSI) and SMMU, the framework for platform msi is ready, this patch set add few patches to enable the ACPI platform msi support. For platform device connecting to ITS on arm platform, we have IORT table

[PATCH v7 08/15] ACPI: IORT: rename iort_node_map_rid() to make it generic

2017-01-11 Thread Hanjun Guo
iort_node_map_rid() was designed for both PCI and platform device, but the rid means requester id is for ITS mappings, rename iort_node_map_rid() to iort_node_map_id() and update its argument names to make it more generic. Signed-off-by: Hanjun Guo Cc: Lorenzo Pieralisi Cc: Tomasz Nowicki ---

[PATCH v7 13/15] irqchip: mbigen: drop module owner

2017-01-11 Thread Hanjun Guo
From: Kefeng Wang Module owner will be set by driver core, so drop it. Signed-off-by: Kefeng Wang Signed-off-by: Hanjun Guo Reviewed-by: Ma Jun Cc: Marc Zyngier Cc: Thomas Gleixner --- drivers/irqchip/irq-mbigen.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/irqchip/irq-mbige

[PATCH v7 09/15] ACPI: platform-msi: retrieve dev id from IORT

2017-01-11 Thread Hanjun Guo
For devices connecting to ITS, it needs dev id to identify itself, and this dev id is represented in the IORT table in named component node [1] for platform devices, so in this patch we will scan the IORT to retrieve device's dev id. For named components we know that there are always two steps inv

[PATCH v7 10/15] ACPI: IORT: move over to iort_node_map_platform_id()

2017-01-11 Thread Hanjun Guo
iort_node_map_platform_id() includes the function of iort_node_get_id(), so update current iort_node_get_id() users and move them over to iort_node_map_platform_id(). type handing in iort_node_get_id() is duplicate with iort_node_map_platform_id(), so clean up a little bit to make the code simpler

[PATCH v7 14/15] irqchip: mbigen: introduce mbigen_of_create_domain()

2017-01-11 Thread Hanjun Guo
From: Kefeng Wang Introduce mbigen_of_create_domain() to consolidate OF related code and prepare for ACPI later, no funtional change. Signed-off-by: Kefeng Wang Signed-off-by: Hanjun Guo Reviewed-by: Ma Jun Cc: Marc Zyngier Cc: Thomas Gleixner --- drivers/irqchip/irq-mbigen.c | 42

[PATCH v2 1/6] selftests/futex: Add stdio used for logging

2017-01-11 Thread Stafford Horne
Without this I am getting warnings of printf missing when compiling selftests. Signed-off-by: Stafford Horne --- tools/testing/selftests/futex/include/logging.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/futex/include/logging.h b/tools/testing/selftests/futex/in

Re: [PATCH v5 4/6] usb: xhci: use bus->sysdev for DMA configuration

2017-01-11 Thread Alan Stern
On Wed, 11 Jan 2017, Mathias Nyman wrote: > On 17.11.2016 13:43, Sriram Dash wrote: > > From: Arnd Bergmann > > > > For xhci-hcd platform device, all the DMA parameters are not > > configured properly, notably dma ops for dwc3 devices. So, set > > the dma for xhci from sysdev. sysdev is pointing

[PATCH v7 07/15] irqchip: gicv3-its: platform-msi: scan MADT to create platform msi domain

2017-01-11 Thread Hanjun Guo
With the introduction of its_pmsi_init_one(), we can add some code on top for ACPI support of platform MSI. We are scanning the MADT table to get the ITS entry(ies), then use the information to create the platform msi domain for devices connect to it, just like the PCI MSI for ITS did. Signed-off

Re: [PATCH v3] staging: greybus: checkpatch: Change parameter type unsigned to unsigned int

2017-01-11 Thread Johan Hovold
On Wed, Jan 11, 2017 at 04:00:35PM +0100, Roman Sommer wrote: > Note that this patch does not fix all checkpatch warnings for the > affected files. > > Signed-off-by: Christian Bewermeyer > Signed-off-by: Roman Sommer Next time I suggest you drop "checkpatch: " from your subject since that's no

[PATCH v2 0/6] Selftests fixes for futex and intel_pstate

2017-01-11 Thread Stafford Horne
This is followup to my previous patch [1] which was a very simple makefile change. After a comment from Darren Hart I updated intel_pstate as well, but noticed a few issues with running intel_pstate. That caused the change to expand a bit. - fix build deps for futex test *original* - update make

[PATCH v7 12/15] msi: platform: make platform_msi_create_device_domain() ACPI aware

2017-01-11 Thread Hanjun Guo
platform_msi_create_device_domain() is used to ctreate irqdomain for the device such as irqchip mbigen generating the MSIs, it's almost ready for ACPI use except of_node_to_fwnode() is for dt only, make it ACPI aware then things will work in both DTS and ACPI. Signed-off-by: Hanjun Guo Cc: Marc Z

[PATCH v7 06/15] irqchip: gicv3-its: platform-msi: refactor its_pmsi_init() to prepare for ACPI

2017-01-11 Thread Hanjun Guo
Introduce its_pmsi_init_one() to refactor the code to isolate ACPI&DT common code to prepare for ACPI later. Signed-off-by: Hanjun Guo Cc: Marc Zyngier Cc: Tomasz Nowicki Cc: Thomas Gleixner --- drivers/irqchip/irq-gic-v3-its-platform-msi.c | 45 --- 1 file changed, 27

[PATCH v7 11/15] ACPI: platform: setup MSI domain for ACPI based platform device

2017-01-11 Thread Hanjun Guo
With the platform msi domain created, we can set up the msi domain for a platform device when it's probed. In order to do that, we need to get the domain that the platform device connecting to, so the iort_get_platform_device_domain() is introduced to retrieve the domain from iort. After the doma

[PATCH v7 05/15] irqchip: gicv3-its: platform-msi: refactor its_pmsi_prepare()

2017-01-11 Thread Hanjun Guo
Adding ACPI support for platform MSI, we need to retrieve the dev id in ACPI way instead of device tree, we already have a well formed function its_pmsi_prepare() to get the dev id but it's OF dependent, so collect OF related code and put them into a single function to make its_pmsi_prepare() more

[PATCH/RESEND v2 3/5] z3fold: extend compaction function

2017-01-11 Thread Vitaly Wool
z3fold_compact_page() currently only handles the situation when there's a single middle chunk within the z3fold page. However it may be worth it to move middle chunk closer to either first or last chunk, whichever is there, if the gap between them is big enough. This patch adds the relevant code,

[PATCH/RESEND v2 1/5] z3fold: make pages_nr atomic

2017-01-11 Thread Vitaly Wool
This patch converts pages_nr per-pool counter to atomic64_t. Signed-off-by: Vitaly Wool --- mm/z3fold.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/mm/z3fold.c b/mm/z3fold.c index 207e5dd..2273789 100644 --- a/mm/z3fold.c +++ b/mm/z3fold.c @@ -80,7 +

Re: [PATCH] ASoC: rt5651: use msleep for large delays

2017-01-11 Thread Nicholas Mc Guire
On Wed, Jan 11, 2017 at 02:59:26PM +, Mark Brown wrote: > On Wed, Jan 11, 2017 at 12:49:36PM +0100, Nicholas Mc Guire wrote: > > > if (!rt5651->hp_mute) > > - usleep_range(8, 85000); > > + msleep(85); > > If you're doing conversions like thi

RE: [PATCH v2 8/8] crypto/testmgr: Allocate only the required output size for hash tests

2017-01-11 Thread David Laight
From: Andy Lutomirski > Sent: 10 January 2017 23:25 > There are some hashes (e.g. sha224) that have some internal trickery > to make sure that only the correct number of output bytes are > generated. If something goes wrong, they could potentially overrun > the output buffer. > > Make the test mo

[PATCH v2 2/6] selftests/futex: Add headers to makefile dependencies

2017-01-11 Thread Stafford Horne
I am working on doing selftests for openrisc and found issues with the futex test not building after changes to the tests source. The futex makefile did not contain dependencies for all headers, so if we make changes to logging.h rebuild will not happen. Add headers to fix it up. Signed-off-by: S

Re: [PATCH v2 2/3] gpio: Add gpio driver support for ThunderX and OCTEON-TX

2017-01-11 Thread Linus Walleij
On Mon, Jan 9, 2017 at 9:02 PM, David Daney wrote: >> if (test_bit(line, gpio->invert_mask)) >>return !(read_bits & BIT(bank_bit)); >> else >>return !!(read_bits & BIT(bank_bit)); >> >> OK maybe not much clearer but seems clearer to me. > > As I really dislike the "!!" idiom, would you se

[PATCH v7 01/15] ACPI: IORT: fix the indentation in iort_scan_node()

2017-01-11 Thread Hanjun Guo
The indentation is wrong when return the iort_node, fix it. Signed-off-by: Hanjun Guo --- drivers/acpi/arm64/iort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c index ba156c5..ce3084b 100644 --- a/drivers/acpi/arm64/ior

Re: pca953x: lockdep warning since 4.10

2017-01-11 Thread Clemens Gruber
On Wed, Jan 11, 2017 at 02:43:31PM +0100, Linus Walleij wrote: > On Sat, Jan 7, 2017 at 9:54 PM, Clemens Gruber > wrote: > > > I observed the following lockdep warning when booting an i.MX6Q board > > with several PCAL9555A gpio expanders connected over I2C. They are > > connected to 3 separate b

[PATCH v2 2/6] cpupower: Restore format of frequency-info limit

2017-01-11 Thread Stafford Horne
The intel_pstate kselftest expects that the output of `cpupower frequency-info -l | tail -1 | awk ' { print $1 } '` to get frequency limits. This does not work after the following two changes. - 562e5f1a3: rework the "cpupower frequency-info" command (Jacob Tanenbaum) removed parsable limit o

Re: [PATCH] pinctrl: qcom: Add msm8998 pinctrl driver

2017-01-11 Thread Linus Walleij
On Mon, Jan 9, 2017 at 4:00 PM, Imran Khan wrote: > Add initial pinctrl driver to support pin configuration with > pinctrl framework for msm8998. > > Signed-off-by: Imran Khan You need review from the Qcom pinctrl maintainer Bjorn Andersson for this patch. +#define NORTH 0x50 +#define WE

[PATCH v7 02/15] ACPI: IORT: add missing comment for iort_dev_find_its_id()

2017-01-11 Thread Hanjun Guo
Add missing req_id parameter to the iort_dev_find_its_id() function kernel-doc comment. Signed-off-by: Hanjun Guo Cc: Lorenzo Pieralisi Cc: Tomasz Nowicki --- drivers/acpi/arm64/iort.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c ind

[PATCH v7 15/15] irqchip: mbigen: Add ACPI support

2017-01-11 Thread Hanjun Guo
With the preparation of platform msi support and interrupt producer in DSDT, we can add mbigen ACPI support now. We are using _PRS methd to indicate number of irq pins instead of num_pins in DT to avoid _DSD usage in this case. For mbi-gen, Device(MBI0) { Name(_HID, "HISI0152")

[PATCH v2 5/6] selftests/intel_pstate: Update makefile to match new style

2017-01-11 Thread Stafford Horne
Recent changes from Bamvor (88baa78d1f318) have standardized the variable names like TEST_GEN_FILES and removed the need for make targets all and clean. These changes bring the intel_pstate test inline with those changes. Cc: Prarit Bhargava Signed-off-by: Stafford Horne --- tools/testing/self

[PATCH v2 6/6] selftests: Add intel_pstate to TARGETS

2017-01-11 Thread Stafford Horne
This test was missing from the TARGETS list. The test requires patches to cpupower to pass correctly. Cc: Prarit Bhargava Signed-off-by: Stafford Horne --- tools/testing/selftests/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/Makefile b/tools/testing/self

[PATCH v2 4/6] selftests/intel_pstate: Fix warning on loop index overflow

2017-01-11 Thread Stafford Horne
The build was showing the warning: aperf.c:60:27: warning: iteration 2147483647 invokes undefined behavior [-Waggressive-loop-optimizations] for (i=0; i<0x8fff; i++) { This change sets i, cpu and fd to unsigned int as they should not need to be signed. Cc: Prarit Bhargava Signed-off-by:

Re: [PATCH v3 13/15] livepatch: change to a per-task consistency model

2017-01-11 Thread Petr Mladek
On Tue 2017-01-10 14:46:46, Josh Poimboeuf wrote: > On Tue, Jan 10, 2017 at 02:00:58PM +0100, Petr Mladek wrote: > > On Thu 2016-12-22 12:31:37, Josh Poimboeuf wrote: > > > On Thu, Dec 22, 2016 at 03:34:52PM +0100, Petr Mladek wrote: > > > > On Wed 2016-12-21 15:25:05, Josh Poimboeuf wrote: > > > >

[PATCH v2 3/6] cpupower: Restore format of frequency-info limit

2017-01-11 Thread Stafford Horne
The intel_pstate kselftest expects that the output of `cpupower frequency-info -l | tail -1 | awk ' { print $1 } '` to get frequency limits. This does not work after the following two changes. - 562e5f1a3: rework the "cpupower frequency-info" command (Jacob Tanenbaum) removed parsable limit o

Re: [PATCH] tools: gpio add .gitignore for generated files

2017-01-11 Thread Linus Walleij
On Tue, Jan 10, 2017 at 3:07 PM, Shuah Khan wrote: > On 01/10/2017 02:29 AM, Linus Walleij wrote: >> On Thu, Jan 5, 2017 at 10:32 PM, Shuah Khan wrote: >> >>> Add .gitignore for generated files. >>> >>> Signed-off-by: Shuah Khan >>> --- >>> tools/gpio/.gitignore | 4 >>> 1 file changed, 4

Re: [PATCH v2 2/6] cpupower: Restore format of frequency-info limit

2017-01-11 Thread Stafford Horne
Hi All, Please ignore this, its a dup of the patch with the same name. I had an slight issue with reordering patches and this got send out. On Thu, Jan 12, 2017 at 12:11:15AM +0900, Stafford Horne wrote: > The intel_pstate kselftest expects that the output of > `cpupower frequency-info -l | tail

[PATCH v2 0/2] sched: Introduce rcuwait

2017-01-11 Thread Davidlohr Bueso
Changes from v1: - Renamed trywake to wake_up. - Added Oleg's review tags. Hi, Here's an updated version of the pcpu rwsem writer wait/wake changes with the abstractions wanted by Oleg. Patch 1 adds rcuwait (for a lack of better name), and patch 2 trivially makes use of it. Has survived tortu

[GIT] Networking

2017-01-11 Thread David Miller
1) Fix rtlwifi crash, from Larry Finger. 2) Memory disclosure in appletalk ipddp routing code, from Vlad Tsyrklevich. 3) r8152 can erroneously split an RX packet into multiple URBs if the Rx FIFO is not empty when we suspend. Fix this by waiting for the FIFO to empty before suspending.

[PATCH 1/2] sched: Introduce rcuwait machinery

2017-01-11 Thread Davidlohr Bueso
rcuwait provides support for (single) rcu-safe task wait/wake functionality, with the caveat that it must not be called after exit_notify(), such that we avoid racing with rcu delayed_put_task_struct callbacks, task_struct being rcu unaware in this context -- for which we similarly have task_rcu_de

[PATCH 2/2] locking/percpu-rwsem: Replace waitqueue with rcuwait

2017-01-11 Thread Davidlohr Bueso
The use of any kind of wait queue is an overkill for pcpu-rwsems. While one option would be to use the less heavy simple (swait) flavor, this is still too much for what pcpu-rwsems needs. For one, we do not care about any sort of queuing in that the only (rare) time writers (and readers, for that m

[PATCH/RESEND v2 4/5] z3fold: use per-page spinlock

2017-01-11 Thread Vitaly Wool
Most of z3fold operations are in-page, such as modifying z3fold page header or moving z3fold objects within a page. Taking per-pool spinlock to protect per-page objects is therefore suboptimal, and the idea of having a per-page spinlock (or rwlock) has been around for some time. This patch implem

[PATCH v7 04/15] irqchip: gic-v3-its: keep the head file include in alphabetic order

2017-01-11 Thread Hanjun Guo
Rearrange header file includes to alphabetic order. As acpi_iort.h includes acpi.h so remove the duplidate acpi.h inclusion as well. Signed-off-by: Hanjun Guo Cc: Marc Zyngier Cc: Tomasz Nowicki --- drivers/irqchip/irq-gic-v3-its.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

Re: [PATCH 0/3] pc104: Mask PC/104 Kconfig options

2017-01-11 Thread Linus Walleij
On Tue, Jan 10, 2017 at 7:50 PM, William Breathitt Gray wrote: > PC/104 form factor devices serve a specific niche of embedded system > users. Since PC/104 devices and hardware are typically used by just a > subset of Linux users, it would be appropriate to filter PC/104 related > Kconfig options

Re: [Intel-gfx] 4.10-rc2 oops in DRM connector code

2017-01-11 Thread Dave Hansen
On 01/10/2017 11:43 PM, Daniel Vetter wrote: > On Tue, Jan 10, 2017 at 08:52:47AM -0800, Dave Hansen wrote: >> On 01/10/2017 02:31 AM, Daniel Vetter wrote: >>> commit e73ab00e9a0f1731f34d0620a9c55f5c30c4ad4e >>> Author: Daniel Vetter >>> Date: Sun Dec 18 14:35:45 2016 +0100 >>> >>> drm: prev

Re: [PATCH v3 13/15] livepatch: change to a per-task consistency model

2017-01-11 Thread Josh Poimboeuf
On Wed, Jan 11, 2017 at 04:18:28PM +0100, Petr Mladek wrote: > On Tue 2017-01-10 14:46:46, Josh Poimboeuf wrote: > > On Tue, Jan 10, 2017 at 02:00:58PM +0100, Petr Mladek wrote: > > > On Thu 2016-12-22 12:31:37, Josh Poimboeuf wrote: > > > > On Thu, Dec 22, 2016 at 03:34:52PM +0100, Petr Mladek wro

Re: [PATCH 56/62] watchdog: tangox_wdt: Convert to use device managed functions

2017-01-11 Thread Marc Gonzalez
On 11/01/2017 15:25, Guenter Roeck wrote: > On 01/11/2017 04:31 AM, Marc Gonzalez wrote: >> On 11/01/2017 11:52, Guenter Roeck wrote: >> >>> On 01/11/2017 01:07 AM, Marc Gonzalez wrote: >>> > @@ -134,12 +134,15 @@ static int tangox_wdt_probe(struct platform_device > *pdev) > err = cl

Re: [PATCH 3/5] pinctrl: sunxi: add driver for V3s SoC

2017-01-11 Thread Linus Walleij
On Tue, Jan 3, 2017 at 4:16 PM, Icenowy Zheng wrote: > V3s SoC features only a pin controller (for the lack of CPUs part). > > Add a driver for this controller. > > Signed-off-by: Icenowy Zheng Patch applied with Maxime's ACK. Yours, Linus Walleij

Re: [PATCH 3/3] xen: optimize xenbus driver for multiple concurrent xenstore accesses

2017-01-11 Thread Boris Ostrovsky
>>> + >>> + >>> +static bool test_reply(struct xb_req_data *req) >>> +{ >>> + if (req->state == xb_req_state_got_reply || !xenbus_ok()) >>> + return true; >>> + >>> + /* Make sure to reread req->state each time. */ >>> + cpu_relax(); >> I don't think I understand why this is needed

Re: [PATCH 8/8] efi: Add EFI_SECURE_BOOT bit [ver #6]

2017-01-11 Thread David Howells
Matt Fleming wrote: > Before we add more efi.flags bits I'd like this series to include the > patch that makes use of EFI_SECURE_BOOT. Alternatively, you move this > last patch to a new series. Are you willing to take the kernel lock-down patches also? David

Re: [Xen-devel] [PATCH] xen: do not re-use pirq number cached in pci device msi msg data

2017-01-11 Thread Dan Streetman
On Tue, Jan 10, 2017 at 8:25 PM, Stefano Stabellini wrote: > On Tue, 10 Jan 2017, Dan Streetman wrote: >> On Tue, Jan 10, 2017 at 2:03 PM, Stefano Stabellini >> wrote: >> > On Tue, 10 Jan 2017, Dan Streetman wrote: >> >> On Tue, Jan 10, 2017 at 10:57 AM, Dan Streetman wrote: >> >> > On Mon, Jan

Re: [PATCH] selftests/futex: Fix makefile dependencies

2017-01-11 Thread Stafford Horne
On Wed, Jan 11, 2017 at 07:41:07AM -0700, Shuah Khan wrote: > On 01/11/2017 01:48 AM, Stafford Horne wrote: > > On Wed, Jan 11, 2017 at 12:07:55AM -0800, Darren Hart wrote: > >> On Wed, Jan 11, 2017 at 01:37:19PM +0900, Stafford Horne wrote: > >>> On Tue, Jan 10, 2017 at 02:17:18PM -0800, Darren Ha

Re: [PATCH 5/8] efi: Get the secure boot status [ver #6]

2017-01-11 Thread David Howells
Matt Fleming wrote: > > + movb$0, BP_secure_boot(%rsi) > > #ifdef CONFIG_EFI_STUB > > /* > > * The entry point for the PE/COFF executable is efi_pe_entry, so > > Is clearing ::secure_boot really necessary? Any code path that goes > via efi_main() will set it correctly and all oth

Re: [RFC PATCH] ext4: increase the protection of drop nlink and ext4 inode destroy

2017-01-11 Thread Theodore Ts'o
On Wed, Jan 11, 2017 at 05:07:29PM +0800, zhangyi (F) wrote: > > (1) The file we want to unlink have many hard links, but only one dcache > entry in memory. > (2) open this file, but it's inode->i_nlink read from disk was 1 (too low). > (3) some one call rename and drop it's i_nlink to zero. > (4

[PATCH] regulator: twl6030: fix range comparison, allowing vsel = 59

2017-01-11 Thread Colin King
From: Colin Ian King The range min_uV > 135 && min_uV <= 15 is never reachable because of a typo in the previous range check and hence vsel = 59 is never reached. Fix the previous range check to enable the vsel = 59 setting. Fixes CoverityScan CID#728454 ("Logially dead code") Signed-o

Re: [PATCH v2] gpio: pca953x: Add optional reset gpio control

2017-01-11 Thread Linus Walleij
On Tue, Jan 10, 2017 at 8:29 PM, Steve Longerbeam wrote: > Add optional reset-gpios pin control. If present, de-assert the > specified reset gpio pin to bring the chip out of reset. > > Signed-off-by: Steve Longerbeam > Cc: Linus Walleij > Cc: Alexandre Courbot > Cc: linux-g...@vger.kernel.org

[PATCH v5 0/4] MIPS: Remote processor driver

2017-01-11 Thread Matt Redfearn
The MIPS remote processor driver allows non-Linux firmware to take control of and execute on one of the systems VPEs. The CPU must be offlined from Linux first. A sysfs interface is created which allows firmware to be loaded and changed at runtime. A full description is available at [1]. An exampl

Re: [PATCH 1/5] pinctrl: core: Use delayed work for hogs

2017-01-11 Thread Linus Walleij
On Tue, Jan 10, 2017 at 8:19 PM, Tony Lindgren wrote: > Below is an experimental fix to intorduce pinctrl_start() that I've > tested with pinctrl-single. Then we should probably make all pin controller > drivers call pinctrl_start() to properly fix the issue of struct pinctrl_dev > handle not bei

[PATCH v5 1/4] irqchip: mips-gic: Add context saving for MIPS_REMOTEPROC

2017-01-11 Thread Matt Redfearn
The MIPS remote processor driver allows non-Linux firmware to take control of and execute on one of the systems VPEs. If that VPE is brought back under Linux, it is necessary to ensure that all GIC interrupts are routed and masked as Linux expects them, as the firmware can have done anything it lik

[PATCH v5 4/4] MIPS: Deprecate VPE Loader

2017-01-11 Thread Matt Redfearn
The MIPS remote processor driver (CONFIG_MIPS_REMOTEPROC) provides a more standard mechanism for using one or more VPs as coprocessors running separate firmware. Here we deprecate this mechanism before it is removed. Signed-off-by: Matt Redfearn --- Changes in v5: None Changes in v4: None Chang

[PATCH v5 2/4] MIPS: CPS: Add VP(E) stealing

2017-01-11 Thread Matt Redfearn
From: Lisa Parratt VP(E) stealing provides a mechanism for removing an offline Virtual Processor from the Linux kernel such that it is available to run bare metal code. Once the CPU has been offlined from Linux, the CPU can be given a task to run via mips_cps_steal_cpu_and_execute(). The CPU is r

[PATCH v5 3/4] remoteproc/MIPS: Add a remoteproc driver for MIPS

2017-01-11 Thread Matt Redfearn
This driver allows a MIPS processor offlined from Linux to be used as a remote processor. Firmware may be loaded via the sysfs interface and changed at runtime, allowing the processor to handle real-time tasks or perform coprocessing while remaining processors are available to Linux. Coprocessor f

Re: gpio: pcf857x: lockdep warning on v4.10-rc3

2017-01-11 Thread Linus Walleij
On Tue, Jan 10, 2017 at 1:18 PM, Roger Quadros wrote: > Hi Linus, > > I see the following lockdep warning on v4.10-rc3 on TI's dra7-evm. > > reverting (d245b3f9bd3 "gpio: simplify adding threaded interrupts") seems to > fix it. I sent out a patch today: "gpio: provide lockdep keys for nested/un

Re: [PATCH v8 2/5] i2c: Add STM32F4 I2C driver

2017-01-11 Thread Uwe Kleine-König
Hello Cedric, On Wed, Jan 11, 2017 at 03:20:41PM +0100, M'boumba Cedric Madianga wrote: > > > >> + */ > >> + reg = i2c_dev->base + STM32F4_I2C_CR1; > >> + stm32f4_i2c_clr_bits(reg, STM32F4_I2C_CR1_ACK); > >> + stm32f4_i2c_set_bits(reg, STM32F4_I2C_C

Re: [PATCH] Input: synaptics-rmi4 - make F03 a tristate symbol

2017-01-11 Thread Arnd Bergmann
On Tuesday, January 10, 2017 4:39:43 PM CET Andrew Duggan wrote: > On 01/10/2017 04:16 AM, Arnd Bergmann wrote: > > If CONFIG_INPUT=m, we get a build error for the rmi4-f03 driver, > > added in linux-4.10: > > > > drivers/input/built-in.o: In function `rmi_f03_attention': > > rmi_f03.c:(.text+0xcfe

Re: [tpmdd-devel] [PATCH RFC 0/4] RFC: in-kernel resource manager

2017-01-11 Thread James Bottomley
On Wed, 2017-01-11 at 13:34 +0200, Jarkko Sakkinen wrote: > On Tue, Jan 10, 2017 at 01:05:58PM -0700, Jason Gunthorpe wrote: > > On Tue, Jan 10, 2017 at 01:16:35AM +0200, Jarkko Sakkinen wrote: > > > On Wed, Jan 04, 2017 at 10:12:41AM -0600, Dr. Greg Wettstein > > > wrote: > > > > The kernel needs

Re: [Intel-gfx] 4.10-rc2 oops in DRM connector code

2017-01-11 Thread Daniel Vetter
On Wed, Jan 11, 2017 at 4:24 PM, Dave Hansen wrote: > On 01/10/2017 11:43 PM, Daniel Vetter wrote: >> On Tue, Jan 10, 2017 at 08:52:47AM -0800, Dave Hansen wrote: >>> On 01/10/2017 02:31 AM, Daniel Vetter wrote: commit e73ab00e9a0f1731f34d0620a9c55f5c30c4ad4e Author: Daniel Vetter

Re: [PATCH v8 2/5] i2c: Add STM32F4 I2C driver

2017-01-11 Thread Uwe Kleine-König
On Wed, Jan 11, 2017 at 02:58:44PM +0100, M'boumba Cedric Madianga wrote: > Hi Uwe, > > 2017-01-11 9:22 GMT+01:00 Uwe Kleine-König : > > Hello Cedric, > > > > On Thu, Jan 05, 2017 at 10:07:23AM +0100, M'boumba Cedric Madianga wrote: > >> +/* > >> + * In standard mode: > >> + * SCL period = SCL hig

[PATCH] PCI: Enumerate switches below PCI-to-PCIe bridges

2017-01-11 Thread Bjorn Helgaas
PCI: Enumerate switches below PCI-to-PCIe bridges A PCI-to-PCIe bridge (a "reverse bridge") has a PCI or PCI-X primary interface and a PCI Express secondary interface. The PCIe interface is a Downstream Port that originates a Link. See the "PCI Express to PCI/PCI-X Bridge Specification", rev 1.0

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