Re: [RFC PATCH v1 00/11] Create fast idle path for short idle periods

2017-07-18 Thread Andi Kleen
On Tue, Jul 18, 2017 at 08:43:53AM +0200, Thomas Gleixner wrote: > On Mon, 17 Jul 2017, Andi Kleen wrote: > > > > We need a tradeoff here IMHO. I'll check Daniel's work to understand > > > how/if > > > it's better than menu governor. > > > > I still would like to see how the fast path without th

Re: [PATCH v2 1/2] staging: gs_fpgaboot: add buffer overflow checks

2017-07-18 Thread Greg Kroah-Hartman
On Mon, Jul 17, 2017 at 08:47:25PM -0400, Jacob von Chorus wrote: > Four fields in struct fpgaimage are char arrays of length MAX_STR (256). > The amount of data read into these buffers is controlled by a length > field in the bitstream file read from userspace. If a corrupt or > malicious firmware

Re: [PATCH V3 1/5] drivers/fmc: remove unused variable

2017-07-18 Thread Alessandro Rubini
> Again, I do not like to take patches without any changelog text at all > :( Sorry, I added this after the "---" line. I thought it was this one the missing item: V3 (Alessandro): fixed From line in patch, added alessandro's acked-by V2 (Pat): added Tested-by and incorrect From line V1 (Pat

Re: [PATCH 2/5] drm: vmwgfx: constify pci_device_id.

2017-07-18 Thread Sinclair Yeh
Thanks. Queued. On Sat, Jul 15, 2017 at 12:44:53PM +0530, Arvind Yadav wrote: > pci_device_id are not supposed to change at runtime. All functions > working with pci_device_id provided by work with > const pci_device_id. So mark the non-const structs as const. > > File size before: >text

Re: [PATCH v2] xattr: Enable security.capability in user namespaces

2017-07-18 Thread James Morris
On Thu, 13 Jul 2017, Stefan Berger wrote: > A file shared by 2 containers, one mapping root to uid=1000, the other mapping > root to uid=2000, will show these two xattrs on the host (init_user_ns) once > these containers set xattrs on that file. I may be missing something here, but what happens w

Re: [PATCH 1/4] drm/atomic: implement drm_atomic_helper_commit_tail for runtime_pm users

2017-07-18 Thread Maxime Ripard
Hi Laurent, On Fri, Jul 14, 2017 at 02:43:12AM +0300, Laurent Pinchart wrote: > Hi Maxime, > > Thank you for the patch. > > On Thursday 13 Jul 2017 16:41:13 Maxime Ripard wrote: > > The current drm_atomic_helper_commit_tail helper works only if the CRTC is > > accessible, and documents an altern

Re: [PATCH 4/4] drm/sun4i: make sure we don't have a commit pending

2017-07-18 Thread Maxime Ripard
On Mon, Jul 17, 2017 at 02:57:19PM +0800, Chen-Yu Tsai wrote: > On Mon, Jul 17, 2017 at 2:55 PM, Maxime Ripard > wrote: > > On Fri, Jul 14, 2017 at 04:56:01PM +0800, Chen-Yu Tsai wrote: > >> Hi, > >> > >> On Thu, Jul 13, 2017 at 10:41 PM, Maxime Ripard > >> wrote: > >> > In the earlier display en

Re: [PATCHv5 3/6] mfd: da9052: add register details for TSI

2017-07-18 Thread Lee Jones
On Mon, 17 Jul 2017, Sebastian Reichel wrote: > Hi, > > On Mon, Jul 17, 2017 at 03:32:45PM +0100, Lee Jones wrote: > > On Mon, 03 Jul 2017, Sebastian Reichel wrote: > > > > > Add register details an channels definition for using the TSI > > > registers in the hwmon driver. > > > > > > Signed-of

Re: [Xen-devel] [PATCH v1] xen/grant-table: log the lack of grants

2017-07-18 Thread Juergen Gross
On 07/07/17 20:23, Wengang Wang wrote: > log a message when we enter this situation: > 1) we already allocated the max number of available grants from hypervisor > and > 2) we still need more (but the request fails because of 1)). > > Sometimes the lack of grants causes IO hangs in xen_blkfront de

[PATCH 1/2] dt-bindings: dma: Add Spreadtrum SC9860 DMA controller

2017-07-18 Thread Baolin Wang
This patch adds the binding documentation for Spreadtrum SC9860 DMA controller device. Signed-off-by: Baolin Wang --- Documentation/devicetree/bindings/dma/sprd-dma.txt | 41 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/sprd-dm

[PATCH 2/2] dma: Add Spreadtrum DMA controller driver

2017-07-18 Thread Baolin Wang
This patch adds the DMA controller driver for Spreadtrum SC9860 platform. Signed-off-by: Baolin Wang --- drivers/dma/Kconfig |7 + drivers/dma/Makefile |1 + drivers/dma/sprd-dma.c | 1451 ++ include/linux/dma/sprd-dma.h | 2

Re: [PATCH v2 0/3] Introduce USB charger support in USB phy

2017-07-18 Thread Baolin Wang
Hi, On 3 July 2017 at 14:07, Baolin Wang wrote: > Currently the Linux kernel does not provide any standard integration of this > feature that integrates the USB subsystem with the system power regulation > provided by PMICs meaning that either vendors must add this in their kernels > or USB gadge

Re: ath10k_htt_rx_amsdu_allowed() noise

2017-07-18 Thread Ryan Hsu
On 07/16/2017 03:56 PM, Gabriel C wrote: > > Can ath10k_warn() be ath10k_dbg() there ? Maybe this ? > Looks good to me. > > From d4138d936635ca7b69ed7f7b0cda4914f0f07917 Mon Sep 17 00:00:00 2001 > From: Gabriel Craciunescu > Date: Mon, 17 Jul 2017 00:45:29 +0200 > Subject: [PATCH] ath10k_htt_rx

Re: [PATCH] mfd: intel_soc_pmic_crc: Uniquify device name

2017-07-18 Thread Lee Jones
On Mon, 17 Jul 2017, Bastien Nocera wrote: > On Mon, 2017-07-17 at 12:58 +0100, Lee Jones wrote: > > The commit log should not be empty. > > Fair. > > > Please provide information as to why this change is required, etc. > > SSIA. Disagree. The $SUBJECT says what your intention is, but does no

Re: [PATCH resend] Documentation: arm: Replace use of virt_to_phys with __pa_symbol

2017-07-18 Thread Geert Uytterhoeven
Hi Russell, On Mon, Jul 17, 2017 at 11:20 PM, Russell King - ARM Linux wrote: > On Mon, Jul 17, 2017 at 01:44:45PM -0600, Jonathan Corbet wrote: >> On Mon, 17 Jul 2017 15:39:28 +0200 >> Geert Uytterhoeven wrote: >> >> > All low-level PM/SMP code using virt_to_phys() should actually use >> > __pa

Re: [PATCH 2/2] mfd: intel_soc_pmic: Differentiate between Bay and Cherry Trail CRC variants

2017-07-18 Thread Lee Jones
On Mon, 17 Jul 2017, Andy Shevchenko wrote: > On Mon, 2017-07-17 at 11:59 +0100, Lee Jones wrote: > > On Sat, 01 Jul 2017, Hans de Goede wrote: > > > > > Both Bay and Cherry Trail devices may be used together with a > > > Crystal Cove > > > PMIC. Each platform has its own variant of the PMIC, whi

Re: [PATCH 0/2] use correct values for startup time bits for AXP22X/AXP8XX PEKs

2017-07-18 Thread Lee Jones
On Mon, 17 Jul 2017, Quentin Schulz wrote: > Hi all, > > On 17/07/2017 11:53, Quentin Schulz wrote: > > According to their datasheets, the AXP221, AXP223, AXP288, AXP803, > > AXP809 and AXP813 PEK have different values for startup time bits from > > the AXP20X PEK (which are currently used for al

Re: [RFC PATCH v1 00/11] Create fast idle path for short idle periods

2017-07-18 Thread Thomas Gleixner
On Mon, 17 Jul 2017, Andi Kleen wrote: > On Tue, Jul 18, 2017 at 08:43:53AM +0200, Thomas Gleixner wrote: > > On Mon, 17 Jul 2017, Andi Kleen wrote: > > > > > > We need a tradeoff here IMHO. I'll check Daniel's work to understand > > > > how/if > > > > it's better than menu governor. > > > > > >

Re: [PATCH 2/2] mfd: axp20x: use correct platform device id for many PEK

2017-07-18 Thread Lee Jones
On Mon, 17 Jul 2017, Quentin Schulz wrote: > According to their datasheets, the AXP221, AXP223, AXP288, AXP803, > AXP809 and AXP813 PEK have different values for startup time bits from > the AXP20X, let's use the platform device id with the correct values. > > Signed-off-by: Quentin Schulz > ---

Re: [PATCH 11/11] mfd: max8925-i2c: Drop unnecessary static

2017-07-18 Thread Lee Jones
On Sat, 15 Jul 2017, Julia Lawall wrote: > Drop static on a local variable, when the variable is initialized before > any possible use. Thus, the static has no benefit. > > The semantic patch that fixes this problem is as follows: > (http://coccinelle.lip6.fr/) > > // > @bad exists@ > position

Re: [PATCH V3 1/5] drivers/fmc: remove unused variable

2017-07-18 Thread Greg KH
On Tue, Jul 18, 2017 at 09:00:29AM +0200, Alessandro Rubini wrote: > > Again, I do not like to take patches without any changelog text at all > > :( > > Sorry, I added this after the "---" line. I thought it was this one the > missing item: > > V3 (Alessandro): fixed From line in patch, added al

Re: [RFC PATCH v1 00/11] Create fast idle path for short idle periods

2017-07-18 Thread Thomas Gleixner
On Mon, 17 Jul 2017, Andi Kleen wrote: > On Tue, Jul 18, 2017 at 08:43:53AM +0200, Thomas Gleixner wrote: > > On Mon, 17 Jul 2017, Andi Kleen wrote: > > > > > > We need a tradeoff here IMHO. I'll check Daniel's work to understand > > > > how/if > > > > it's better than menu governor. > > > > > >

Re: [PATCH 0/2] use correct values for startup time bits for AXP22X/AXP8XX PEKs

2017-07-18 Thread Quentin Schulz
Hi Lee, On 18/07/2017 09:18, Lee Jones wrote: > On Mon, 17 Jul 2017, Quentin Schulz wrote: > >> Hi all, >> >> On 17/07/2017 11:53, Quentin Schulz wrote: >>> According to their datasheets, the AXP221, AXP223, AXP288, AXP803, >>> AXP809 and AXP813 PEK have different values for startup time bits fro

Re: [PATCH] serial: 8250: fix error handling in of_platform_serial_probe()

2017-07-18 Thread Greg Kroah-Hartman
On Sat, Jul 01, 2017 at 01:49:29AM +0300, Alexey Khoroshilov wrote: > clk_disable_unprepare(info->clk) is missed in of_platform_serial_probe(), > while irq_dispose_mapping(port->irq) is missed in of_platform_serial_setup(). > > Found by Linux Driver Verification project (linuxtesting.org). > > Si

Re: [PATCH v6 00/16] perf tool: add meta-data header support for pipe-mode

2017-07-18 Thread Jiri Olsa
On Mon, Jul 17, 2017 at 09:25:33PM -0700, David Carrillo-Cisneros wrote: > v6: - Avoid buffer resize that would overflow event's header size. hi, for the patchset Acked-by: Jiri Olsa thanks, jirka

[PATCH 2/2] Staging: iio: light: tsl2x7x_core.c: Replace symbolic permission with octal permission

2017-07-18 Thread Jaya Durga
Replace symbolic permissions with their octect representation to fix checkpatch warnings. Signed-off-by: Jaya Durga --- drivers/staging/iio/light/tsl2x7x_core.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/staging/iio/light/tsl2x7x_core.c b/

[PATCH v3 0/6] Add HiSilicon SoC uncore Performance Monitoring Unit driver

2017-07-18 Thread Shaokun Zhang
This patchset adds support for HiSilicon SoC uncore PMUs driver. It includes L3C, Hydra Home Agent (HHA) and DDRC. Changes in v3: * rebase to 4.13-rc1 * add dev_err if ioremap fails for PMUs Changes in v2: * fix kbuild test robot error * make hisi_uncore_ops static Shaokun Zhang (6): Document

[PATCH v3 3/6] perf: hisi: Add support for HiSilicon SoC L3C PMU driver

2017-07-18 Thread Shaokun Zhang
This patch adds support for L3C PMU driver in HiSilicon SoC chip, Each L3C has own control, counter and interrupt registers and is an separate PMU. For each L3C PMU, it has 8-programable counters and supports 0x60 events, event code is 8-bits and every counter is free-running. Interrupt is supporte

[PATCH v3 5/6] perf: hisi: Add support for HiSilicon SoC DDRC PMU driver

2017-07-18 Thread Shaokun Zhang
This patch adds support for DDRC PMU driver in HiSilicon SoC chip, Each DDRC has own control, counter and interrupt registers and is an separate PMU. For each DDRC PMU, it has 8-fixed-purpose counters which have been mapped to 8-events by hardware, it assumes that counter index is equal to event co

[PATCH] dt-bindings: add device tree binding for Allwinner XR819 SDIO Wi-Fi

2017-07-18 Thread Icenowy Zheng
Allwinner XR819 is a SDIO Wi-Fi chip, which has the functionality to use an out-of-band interrupt pin instead of SDIO in-band interrupt. Add the device tree binding of this chip, in order to make it possible to add this interrupt pin to device trees. Signed-off-by: Icenowy Zheng --- .../binding

[PATCH v3 4/6] perf: hisi: Add support for HiSilicon SoC HHA PMU driver

2017-07-18 Thread Shaokun Zhang
L3 cache coherence is maintained by Hydra Home Agent (HHA) in HiSilicon SoC. This patch adds support for HHA PMU driver, Each HHA has own control, counter and interrupt registers and is an separate PMU. For each HHA PMU, it has 16-programable counters and supports 0x50 events, event code is 8-bits

[PATCH v3 6/6] arm64: MAINTAINERS: hisi: Add HiSilicon SoC PMU support

2017-07-18 Thread Shaokun Zhang
Add support HiSilicon SoC uncore PMU driver. Signed-off-by: Shaokun Zhang --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 205d397..649b144 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6197,6 +6197,13 @@ S: Maintained F: driv

[PATCH v3 2/6] perf: hisi: Add support for HiSilicon SoC uncore PMU driver

2017-07-18 Thread Shaokun Zhang
This patch adds support HiSilicon SoC uncore PMU driver framework and interfaces. Signed-off-by: Shaokun Zhang Signed-off-by: Anurup M --- drivers/perf/Kconfig | 7 + drivers/perf/Makefile| 1 + drivers/perf/hisilicon/Makefile | 1 + driver

Re: [PATCH V3 1/5] drivers/fmc: remove unused variable

2017-07-18 Thread Alessandro Rubini
> Ah, sorry, wrong "changelog". I meant the area that shows up in git > about what this patch does. There's no description of it other than the > Subject line. Yes. Ok, I'll add a longer commit message for V4 of the whole set. Tomorrow (/me leaving now to a client).

[PATCH v3 1/6] Documentation: perf: hisi: Documentation for HiSilicon SoC PMU driver

2017-07-18 Thread Shaokun Zhang
This patch adds documentation for the uncore PMUs on HiSilicon SoC. Signed-off-by: Shaokun Zhang Signed-off-by: Anurup M --- Documentation/perf/hisi-pmu.txt | 51 + 1 file changed, 51 insertions(+) create mode 100644 Documentation/perf/hisi-pmu.txt diff

Re: [PATCH] serial: 8250: fix error handling in of_platform_serial_probe()

2017-07-18 Thread Alexey Khoroshilov
On 18.07.2017 10:27, Greg Kroah-Hartman wrote: > On Sat, Jul 01, 2017 at 01:49:29AM +0300, Alexey Khoroshilov wrote: >> clk_disable_unprepare(info->clk) is missed in of_platform_serial_probe(), >> while irq_dispose_mapping(port->irq) is missed in of_platform_serial_setup(). >> >> Found by Linux Dri

Re: [RFC PATCH v2] Bluetooth: btusb: Fix memory leak in play_deferred

2017-07-18 Thread Oliver Neukum
Am Dienstag, den 18.07.2017, 08:44 +0200 schrieb Marcel Holtmann: > > diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c > > index 0d533b2..a22a08b 100644 > > --- a/drivers/bluetooth/btusb.c > > +++ b/drivers/bluetooth/btusb.c > > @@ -3260,19 +3260,33 @@ static int btusb_suspend(str

[PATCH] dt-bindings: add compatible string of Allwinner H5 Mali-450 MP4 GPU

2017-07-18 Thread Icenowy Zheng
Allwinner H5 has a Mali-450 MP4 GPU, which has a reset line like other Allwinner SoCs with Mali Utgard, but it's a Mali-450, so it needs a new compatible. Add the new compatible to Mali Utgard binding document. Signed-off-by: Icenowy Zheng --- Documentation/devicetree/bindings/gpu/arm,mali-utga

Re: [PATCH 4/4] drm/sun4i: make sure we don't have a commit pending

2017-07-18 Thread Daniel Vetter
On Tue, Jul 18, 2017 at 9:07 AM, Maxime Ripard wrote: > On Mon, Jul 17, 2017 at 02:57:19PM +0800, Chen-Yu Tsai wrote: >> On Mon, Jul 17, 2017 at 2:55 PM, Maxime Ripard >> wrote: >> > On Fri, Jul 14, 2017 at 04:56:01PM +0800, Chen-Yu Tsai wrote: >> >> Hi, >> >> >> >> On Thu, Jul 13, 2017 at 10:41

Re: [PATCH 1/2] Input: axp20x-pek: add support for AXP221 PEK

2017-07-18 Thread Quentin Schulz
Hi Maxime, On 17/07/2017 13:29, Maxime Ripard wrote: > Hi, > > On Mon, Jul 17, 2017 at 11:53:06AM +0200, Quentin Schulz wrote: >> The AXP221 has different values for startup time bits from the AXP20X. >> >> This patch introduces a different platform_device_id to the driver and >> adds the necessa

Re: [REGRESSION] 28676d869bbb (scsi: sg: check for valid direction before starting the request) breaks mtx tape library control

2017-07-18 Thread Johannes Thumshirn
On Mon, Jul 17, 2017 at 07:44:50PM -0500, Jason L Tibbitts III wrote: > and confirmed that clean unpatched 4.12 shows the problem, while > reverting just that patch fixes the issue. Unfortunately I don't know > enough to actually fix this, but I can easily test patches. This is fixed with: commit

Re: [PATCH] drm/i915: Explicit the connector name for DP link training result

2017-07-18 Thread Jani Nikula
On Mon, 17 Jul 2017, Paul Kocialkowski wrote: > This adds the connector name when printing a debug message about the DP > link training result. It is useful to figure out what connector is > failing when multiple DP connectors are used. Perhaps more consistent would be using a prefix like this:

Re: [PATCH] ARM: zImage: Fix stack overflow in merge_fdt_bootargs()

2017-07-18 Thread Richard Genoud
On 16/07/2017 23:43, Rask Ingemann Lambertsen wrote: > This function is called very early on from head.S and currently sets up a > stack frame of more than 1024 bytes: > > atags_to_fdt.c: In function ‘merge_fdt_bootargs’: > atags_to_fdt.c:98:1: warning: the frame size of 1032 bytes is larger than

[PATCH] irqchip/mips-gic: Remove population of irq domain names

2017-07-18 Thread Matt Redfearn
Since commit d59f6617eef0f ("genirq: Allow fwnode to carry name information only") the irqdomain core sets the names of irq domains. When the name is allocated the new IRQ_DOMAIN_NAME_ALLOCATED flag is set. Replacing the allocated name with a constant one is not a good idea, since calling the new i

Re: [PATCH 0/2] use correct values for startup time bits for AXP22X/AXP8XX PEKs

2017-07-18 Thread Chen-Yu Tsai
On Tue, Jul 18, 2017 at 3:25 PM, Quentin Schulz wrote: > Hi Lee, > > On 18/07/2017 09:18, Lee Jones wrote: >> On Mon, 17 Jul 2017, Quentin Schulz wrote: >> >>> Hi all, >>> >>> On 17/07/2017 11:53, Quentin Schulz wrote: According to their datasheets, the AXP221, AXP223, AXP288, AXP803, AX

[PATCH v2 1/2] pinctrl: sunxi: add a missing function of A10/A20 pinctrl driver

2017-07-18 Thread Icenowy Zheng
The PH16 pin has a function with mux id 0x5, which is the DET pin of the "sim" (smart card reader) IP block. This function is missing in old versions of A10/A20 SoCs' datasheets and user manuals, so it's also missing in the old drivers. The newest A10 Datasheet V1.70 and A20 Datasheet V1.41 contai

Re: [PATCH] x86/microcode: Document the three loading methods

2017-07-18 Thread Borislav Petkov
On Tue, Jul 18, 2017 at 08:27:54AM +0200, Dominik Brodowski wrote: > What about: "... microcode in (uncompressed) cpio format followed by the > (possibly compressed) initrd image", to clarify this distinction? Meh. > What about something more fancy, such as > iucode_tool -v /lib/firmware/in

[PATCH v2 2/2] pinctrl: sunxi: add support of R40 to A10 pinctrl driver

2017-07-18 Thread Icenowy Zheng
R40 is said to be an upgrade of A20, and its pin configuration is also similar to A20 (and thus similar to A10). Add support for R40 to the A10 pinctrl driver. Signed-off-by: Icenowy Zheng --- Changes in v2: - Fixed some lines' format. drivers/pinctrl/sunxi/Kconfig | 2 +- driver

[PATCH v2 0/2] Last step to working Allwinner R40 pinctrl

2017-07-18 Thread Icenowy Zheng
This patchset contains only two patches. The first one is a minor fix for the A10 pinctrl driver, add a function of a pin, which used to be missing in A10/A20 pinctrl driver. Thanks for Chen-Yu for discovering it when reviewing my R40 pinctrl patchset. The second one is the real R40 pinctrl part,

Re: [PATCH 2/2] mfd: axp20x: use correct platform device id for many PEK

2017-07-18 Thread Quentin Schulz
Hi Lee, On 18/07/2017 09:19, Lee Jones wrote: > On Mon, 17 Jul 2017, Quentin Schulz wrote: > >> According to their datasheets, the AXP221, AXP223, AXP288, AXP803, >> AXP809 and AXP813 PEK have different values for startup time bits from >> the AXP20X, let's use the platform device id with the cor

Re: [PATCH v4 0/2] Add basic support for Mediatek MT2712 SoC

2017-07-18 Thread YT Shen
Hi Matthias, Just a gentle ping. Should I rebase to 4.13-rc1 and send v5? Thanks yt.shen On Thu, 2017-06-22 at 17:32 +0800, YT Shen wrote: > MT2712 is a SoC based on 64bit ARMv8 architecture. > MT2712 share many HW IP with MT8173. This patchset was tested on MT2712 > evaluation board, and boot

[PATCH] Coccinelle: add atomic_as_refcounter script

2017-07-18 Thread Elena Reshetova
atomic_as_refcounter.cocci script allows detecting cases when refcount_t type and API should be used instead of atomic_t. Signed-off-by: Elena Reshetova --- scripts/coccinelle/api/atomic_as_refcounter.cocci | 102 ++ 1 file changed, 102 insertions(+) create mode 100644 scrip

[PATCH] Coccinelle report script for refcounters

2017-07-18 Thread Elena Reshetova
The below script can be used to detect potential misusage of atomic_t type and API for reference counting purposes. Now when we have a dedicated refcount_t type and API with security protection implemented, people should be using it instead. Currently it still reports many occurences since we are

[tip:irq/urgent] irqchip/mips-gic: Remove population of irq domain names

2017-07-18 Thread tip-bot for Matt Redfearn
Commit-ID: ddac9c5bfa75029ed4b58e81d8d3c49694598ff6 Gitweb: http://git.kernel.org/tip/ddac9c5bfa75029ed4b58e81d8d3c49694598ff6 Author: Matt Redfearn AuthorDate: Tue, 18 Jul 2017 08:39:21 +0100 Committer: Thomas Gleixner CommitDate: Tue, 18 Jul 2017 09:45:28 +0200 irqchip/mips-gic: Remo

Re: [PATCH v2] mtd: nand: fix lack of oob layout when using no ecc

2017-07-18 Thread Boris Brezillon
On Mon, 10 Jul 2017 14:05:19 +0200 Miquel RAYNAL wrote: > Fix nand core lack of OOB layout when: > - the NFC driver does not provide any OOB layout, > - ECC operations are disabled (using NAND_ECC_NONE). > Using this configuration leads to a crash during the probe. > > Add layout functions for s

[PATCH v6 2/3] clk: gate: expose clk_gate_ops::is_enabled

2017-07-18 Thread gabriel.fernandez
From: Gabriel Fernandez This patch exposes clk_gate_ops::is_enabled as functions that can be directly called and assigned in places like this so we don't need wrapper functions that do nothing besides forward the call. Signed-off-by: Gabriel Fernandez Sugested by Stephen Boyd --- drivers/clk/

Re: [PATCH] staging: gs_fpgaboot: add buffer overflow checks

2017-07-18 Thread Dan Carpenter
On Mon, Jul 17, 2017 at 08:21:20PM -0400, Jacob von Chorus wrote: > On Mon, Jul 17, 2017 at 10:53:25PM +0300, Dan Carpenter wrote: > > > + if (len + 1 > n) { > > > > It's more idiomatic to say "if (len >= n)". Plus that's a good habbit > > My reasoning behind using "((len + 1) > n)" is that len

[PATCH v6 3/3] clk: stm32h7: Add stm32h743 clock driver

2017-07-18 Thread gabriel.fernandez
From: Gabriel Fernandez This patch enables clocks for STM32H743 boards. Signed-off-by: Gabriel Fernandez for MFD changes: Acked-by: Lee Jones for DT-Bindings Acked-by: Rob Herring --- .../devicetree/bindings/clock/st,stm32h7-rcc.txt | 81 ++ drivers/clk/Makefile

[PATCH v6 1/3] clk: nxp: clk-lpc32xx: rename clk_gate_is_enabled()

2017-07-18 Thread gabriel.fernandez
From: Gabriel Fernandez We need to export clk_gate_is_enabled() from clk framework, then to avoid compilation issue we have to rename clk_gate_is_enabled() in NXP LPC32xx clock driver. Signed-off-by: Gabriel Fernandez --- drivers/clk/nxp/clk-lpc32xx.c | 4 ++-- 1 file changed, 2 insertions(+),

[PATCH v3] staging: unisys: visorbus: Constify attribute_group structures.

2017-07-18 Thread Arvind Yadav
attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/staging/unisys/visorbus/visorbus_main.c | 4 ++-- drivers/staging/unisys

[PATCH v6 0/3] clk: stm32h7: Add stm32h743 clock driver

2017-07-18 Thread gabriel.fernandez
From: Gabriel Fernandez v6: - rename clk_gate_is_enabled() in nxp lpc32xx driver. - add EXPORT_SYMBOL_GPL(clk_gate_is_enabled) v5: - return bool instead int for enable_power_domain_write_protection() - add comment to explain use of CLK_OF_DECLARE_DRIVER() - add comment to explain why w

Re: [PATCH 1/2] Input: axp20x-pek: add support for AXP221 PEK

2017-07-18 Thread Maxime Ripard
On Tue, Jul 18, 2017 at 09:36:04AM +0200, Quentin Schulz wrote: > >> + > >> + error = sysfs_create_group(&pdev->dev.kobj, > >> + axp20x_pek->attribute_group); > > > > Wouldn't it make more sense to just store the startup_time structure > > in the axp20x_pek structure,

Re: [linux-sunxi] [PATCH v2 1/2] pinctrl: sunxi: add a missing function of A10/A20 pinctrl driver

2017-07-18 Thread Chen-Yu Tsai
On Tue, Jul 18, 2017 at 3:42 PM, Icenowy Zheng wrote: > The PH16 pin has a function with mux id 0x5, which is the DET pin of the > "sim" (smart card reader) IP block. > > This function is missing in old versions of A10/A20 SoCs' datasheets and > user manuals, so it's also missing in the old driver

Re: [PATCH] xen/x86: Don't BUG on CPU0 offlining

2017-07-18 Thread Juergen Gross
On 26/06/17 18:39, Vitaly Kuznetsov wrote: > CONFIG_BOOTPARAM_HOTPLUG_CPU0 allows to offline CPU0 but Xen HVM guests > BUG() in xen_teardown_timer(). Remove the BUG_ON(), this is probably a > leftover from ancient times when CPU0 hotplug was impossible, it works > just fine for HVM. > > Signed-off

Re: [Xen-devel] [PATCH v1] xen/grant-table: log the lack of grants

2017-07-18 Thread Juergen Gross
On 07/07/17 20:23, Wengang Wang wrote: > log a message when we enter this situation: > 1) we already allocated the max number of available grants from hypervisor > and > 2) we still need more (but the request fails because of 1)). > > Sometimes the lack of grants causes IO hangs in xen_blkfront de

Re: [PATCH v3] staging: unisys: visorbus: Constify attribute_group structures.

2017-07-18 Thread Greg KH
On Tue, Jul 18, 2017 at 01:24:42PM +0530, Arvind Yadav wrote: > attribute_group are not supposed to change at runtime. All functions > working with attribute_group provided by work > with const attribute_group. So mark the non-const structs as const. > > Signed-off-by: Arvind Yadav > --- > driv

Re: [PATCH][xen-next] xen/pvcalls: fix null pointer reference on sock_release call

2017-07-18 Thread Juergen Gross
On 11/07/17 21:41, Colin King wrote: > From: Colin Ian King > > Currently a sock_release on map->sock will result in a null pointer > deference on map when map is null. Instead, the sock_relase sould > be on sock and not map->sock. > > Detected by CoverityScan, CID#1450169 ("Dereference after nu

[GIT PULL] Immutable branch between MFD, ARM and I2C due for the v4.14 merge window

2017-07-18 Thread Lee Jones
Enjoy! The following changes since commit 5771a8c08880cdca3bfb4a3fc6d309d6bba20877: Linux v4.13-rc1 (2017-07-15 15:22:10 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git ib-mfd-arm-i2c-v4.14 for you to fetch changes up to ea5ae803192e

Re: [PATCH 2/2] xen: dont fiddle with event channel masking in suspend/resume

2017-07-18 Thread Thomas Gleixner
On Mon, 17 Jul 2017, Juergen Gross wrote: > Instead of fiddling with masking the event channels during suspend > and resume handling let do the irq subsystem do its job. It will do > the mask and unmask operations as needed. > > Signed-off-by: Juergen Gross Acked-by: Thomas Gleixner

Re: [RFC PATCH v2] Bluetooth: btusb: Fix memory leak in play_deferred

2017-07-18 Thread jeffy
Hi Oliver, On 07/18/2017 03:30 PM, Oliver Neukum wrote: Am Dienstag, den 18.07.2017, 08:44 +0200 schrieb Marcel Holtmann: diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 0d533b2..a22a08b 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -3260,19

Re: [PATCH 3/3] ghes_edac: add platform check to enable ghes_edac

2017-07-18 Thread Borislav Petkov
On Tue, Jul 18, 2017 at 08:00:07AM +0200, Borislav Petkov wrote: > And I think we should try this first: have the firmware disable > detection methods so that the platform drivers don't load. Btw, in looking at this more, what about the firmware-first thing? I.e., the firmware-first detection wit

Re: [PATCH 1/3] mfd: syscon: update Atmel SMC binding doc

2017-07-18 Thread Lee Jones
On Tue, 11 Jul 2017, Ludovic Desroches wrote: > A new compatible string is introduced for SMC on sama5d2 to manage a > different layout of the registers. > > Signed-off-by: Ludovic Desroches > --- > Documentation/devicetree/bindings/mfd/atmel-smc.txt | 1 + > 1 file changed, 1 insertion(+) App

Re: [PATCH v3] staging: unisys: visorbus: Constify attribute_group structures.

2017-07-18 Thread Arvind Yadav
Hi Greg, On Tuesday 18 July 2017 01:30 PM, Greg KH wrote: On Tue, Jul 18, 2017 at 01:24:42PM +0530, Arvind Yadav wrote: attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs a

[PATCH v4] staging: unisys: visorbus: Constify attribute_group structures.

2017-07-18 Thread Arvind Yadav
attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- Changes in v2: Change log typo was not correct. Changes in v3:

[RFC PATCH v12 1/4] crypto: make Jitter RNG directly accessible

2017-07-18 Thread Stephan Müller
To support the LRNG operation which allocates the Jitter RNG separately from the kernel crypto API, extract the relevant information into a separate header file. CC: Greg Kroah-Hartman CC: Arnd Bergmann CC: Jason A. Donenfeld Signed-off-by: Stephan Mueller --- crypto/jitterentropy.c |

[RFC PATCH v12 3/4] Linux Random Number Generator

2017-07-18 Thread Stephan Müller
The LRNG with the following properties: * noise source: interrupts timing with fast boot time seeding * lockless LFSR to collect raw entropy * use of standalone ChaCha20 based RNG with the option to use a different DRNG selectable at compile time * "atomic" seeding of secondary DRBG to ensure

[RFC PATCH v12 0/4] /dev/random - a new approach

2017-07-18 Thread Stephan Müller
Hi, after distributing patches for the Linux-RNG - a new approach for the last half year, I would like to submit this RFC for inclusion into the kernel. The following patch set provides a different approach to /dev/random which I call Linux Random Number Generator (LRNG) to collect entropy within

[RFC PATCH v12 2/4] random: conditionally compile code depending on LRNG

2017-07-18 Thread Stephan Müller
When selecting the LRNG for compilation, disable add_disk_randomness and its supporting function. CC: Greg Kroah-Hartman CC: Arnd Bergmann CC: Jason A. Donenfeld Signed-off-by: Stephan Mueller --- include/linux/genhd.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/linux/gen

Re: [RFC PATCH v12 2/4] random: conditionally compile code depending on LRNG

2017-07-18 Thread Arnd Bergmann
On Tue, Jul 18, 2017 at 9:58 AM, Stephan Müller wrote: > When selecting the LRNG for compilation, disable add_disk_randomness and > its supporting function. > > CC: Greg Kroah-Hartman > CC: Arnd Bergmann > CC: Jason A. Donenfeld > Signed-off-by: Stephan Mueller I think this needs a better exp

[RFC PATCH v12 4/4] LRNG - enable compile

2017-07-18 Thread Stephan Müller
Add LRNG compilation support. CC: Greg Kroah-Hartman CC: Arnd Bergmann CC: Jason A. Donenfeld Signed-off-by: Stephan Mueller --- drivers/char/Kconfig | 10 ++ drivers/char/Makefile | 10 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/drivers/char/Kconfig b/

Re: [PATCH 2/3] mfd: syscon: atmel-smc: add helper to retrieve register layout

2017-07-18 Thread Lee Jones
On Tue, 11 Jul 2017, Ludovic Desroches wrote: > For HSMC controller, the register layout depends on the device i.e. the > offset of setup, pulse, cycle, mode and timings registers is not the > same. An helper is added to provide the correct register layout. > > Fixes: fe9d7cb22ef3 ("mfd: syscon:

Re: [PATCH 1/2] Input: axp20x-pek: add support for AXP221 PEK

2017-07-18 Thread Quentin Schulz
Hi Maxime, On 18/07/2017 09:57, Maxime Ripard wrote: > On Tue, Jul 18, 2017 at 09:36:04AM +0200, Quentin Schulz wrote: + + error = sysfs_create_group(&pdev->dev.kobj, + axp20x_pek->attribute_group); >>> >>> Wouldn't it make more sense to just store the s

Re: [PATCH 2/2] Revert "ASoC: ux500: drop platform DAI assignments"

2017-07-18 Thread Johan Hovold
On Mon, Jul 17, 2017 at 03:51:27PM +0100, Mark Brown wrote: > On Wed, Jul 12, 2017 at 05:55:30PM +0200, Johan Hovold wrote: > > This reverts commit f1013cdeeeb9 ("ASoC: ux500: drop platform DAI > > assignments"), which seems to have been based on a misunderstanding and > > prevents the platform dri

[PATCH 1/2] arm: dts: stm32: add cec for stm32f7 familly

2017-07-18 Thread Benjamin Gaignard
add cec in devicetree for stm32f7 familly Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32f746.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/stm32f746.dtsi b/arch/arm/boot/dts/stm32f746.dtsi index 0c3dd1f..770e474 100644 --- a/arch/arm

[PATCH 2/2] arm: dts: stm32: enable cec for stm32f769 discovery

2017-07-18 Thread Benjamin Gaignard
enable cec for stm32f769 discovery board Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32f769-disco.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/stm32f769-disco.dts b/arch/arm/boot/dts/stm32f769-disco.dts index 166728a..14e54da 100644 --- a/arch/ar

[PATCH v3] mm/vmalloc: terminate searching since one node found

2017-07-18 Thread Zhaoyang Huang
It is no need to find the very beginning of the area within alloc_vmap_area, which can be done by judging each node during the process For current approach, the worst case is that the starting node which be found for searching the 'vmap_area_list' is close to the 'vstart', while the final availabl

Re: [RFC PATCH v12 1/4] crypto: make Jitter RNG directly accessible

2017-07-18 Thread Greg Kroah-Hartman
On Tue, Jul 18, 2017 at 09:57:55AM +0200, Stephan Müller wrote: > --- /dev/null > +++ b/include/crypto/jitterentropy.h > @@ -0,0 +1,80 @@ > +/* > + * Copyright (C) 2017, Stephan Mueller > + * > + * Redistribution and use in source and binary forms, with or without > + * modification, are permitted

Re: [RFC PATCH v12 3/4] Linux Random Number Generator

2017-07-18 Thread Greg Kroah-Hartman
On Tue, Jul 18, 2017 at 09:59:09AM +0200, Stephan Müller wrote: > The LRNG with the following properties: > > * noise source: interrupts timing with fast boot time seeding > > * lockless LFSR to collect raw entropy > > * use of standalone ChaCha20 based RNG with the option to use a > different

Re: [RFC 0/4] perf script python: Provide perf_sample dict to all handlers

2017-07-18 Thread Jiri Olsa
On Mon, Jul 17, 2017 at 03:10:36PM -0700, Arun Kalyanasundaram wrote: > The process_event python hook receives a dict with all perf_sample entries. > > Other handlers (e.g. trace_unhandled, python_process_tracepoint) predate the > introduction of this dict and do not receive it. This patch series

Re: [RFC PATCH v12 2/4] random: conditionally compile code depending on LRNG

2017-07-18 Thread Stephan Müller
Am Dienstag, 18. Juli 2017, 10:13:55 CEST schrieb Arnd Bergmann: Hi Arnd, > On Tue, Jul 18, 2017 at 9:58 AM, Stephan Müller wrote: > > When selecting the LRNG for compilation, disable add_disk_randomness and > > its supporting function. > > > > CC: Greg Kroah-Hartman > > CC: Arnd Bergmann > >

Re: [PATCH v2] mm/vmalloc: terminate searching since one node found

2017-07-18 Thread Zhaoyang Huang
On Mon, Jul 17, 2017 at 4:29 PM, Michal Hocko wrote: > On Mon 17-07-17 15:27:31, Zhaoyang Huang wrote: >> From: Zhaoyang Huang >> >> It is no need to find the very beginning of the area within >> alloc_vmap_area, which can be done by judging each node during the process >> >> For current approach

Re: [RFC PATCH v12 1/4] crypto: make Jitter RNG directly accessible

2017-07-18 Thread Stephan Müller
Am Dienstag, 18. Juli 2017, 10:30:14 CEST schrieb Greg Kroah-Hartman: Hi Greg, > > +typedefunsigned long long __u64; > > +typedeflong long __s64; > > types.h already has these defines, don't re-typedef them again... The issue is that the C code is compiled without opt

Re: [PATCH v5 4/4]: perf/core: complete replace of lists by rb trees for pinned and flexible groups at perf_event_context

2017-07-18 Thread Alexey Budankov
Hi, Are there any new comments so far? Could you please suggest further steps forward? Thanks, Alexey On 10.07.2017 16:03, Alexey Budankov wrote: > perf/core: complete replace of lists by rb trees for pinned and >flexible groups at perf_event_context > > By default, the userspace

Re: [PATCH v7 2/3] media: i2c: adv748x: add adv748x driver

2017-07-18 Thread Sakari Ailus
Hi Kieran, A few more minor matters that you might want to address on top of Hans's pull request. On Thu, Jul 06, 2017 at 12:01:16PM +0100, Kieran Bingham wrote: ... > +static int adv748x_afe_g_input_status(struct v4l2_subdev *sd, u32 *status) > +{ > + struct adv748x_afe *afe = adv748x_sd_to_

Re: [RFC PATCH v2] Bluetooth: btusb: Fix memory leak in play_deferred

2017-07-18 Thread Oliver Neukum
Am Dienstag, den 18.07.2017, 16:08 +0800 schrieb jeffy: > > I am afraid not. We cannot silently drop one part of a transmission. > > I am afraid that the correct algorithm, if we encounter an error at > > that stage, is to abort the operation and report an error. > > > so i should break the loop wh

Re: [RFC PATCH v12 3/4] Linux Random Number Generator

2017-07-18 Thread Stephan Müller
Am Dienstag, 18. Juli 2017, 10:32:10 CEST schrieb Greg Kroah-Hartman: Hi Greg, > external references do not last as long as the kernel change log does :( What would be the best way to cite a 50+ page document? I got a suggestion to include the ASCII version of the document into Documentation/ -

Re: [PATCH] mfd: twl4030-irq: remove unnecessary static in twl4030_init_irq()

2017-07-18 Thread Lee Jones
On Mon, 17 Jul 2017, Gustavo A. R. Silva wrote: > Remove unnecessary static on local variable twl4030_irq_chip. > Such variable is initialized before being used, on every > execution path throughout the function. The static has no > benefit and, removing it reduces the object file size. > > This

Re: [PATCH v7 12/13] ACPI / init: Invoke early ACPI initialization earlier

2017-07-18 Thread b...@redhat.com
On 07/18/17 at 02:08pm, Dou Liyang wrote: > Hi, Zheng > > At 07/18/2017 01:18 PM, Zheng, Lv wrote: > > Hi, > > > > Can the problem be fixed by invoking acpi_put_table() for mapped DMAR table? > > Invoking acpi_put_table() is my first choice. But it made the kernel > *panic* when we try to get th

Re: [PATCH v1 1/2] remoteproc: dt: Provide bindings for iMX6SX/7D Remote Processor Controller driver

2017-07-18 Thread Oleksij Rempel
Hallo Bjorn, On 11.07.2017 00:14, Bjorn Andersson wrote: On Mon 10 Jul 07:42 PDT 2017, Oleksij Rempel wrote: Signed-off-by: Oleksij Rempel --- .../devicetree/bindings/remoteproc/imx-rproc.txt | 44 ++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/de

Re: [RFC PATCH v12 2/4] random: conditionally compile code depending on LRNG

2017-07-18 Thread Arnd Bergmann
On Tue, Jul 18, 2017 at 10:37 AM, Stephan Müller wrote: > Am Dienstag, 18. Juli 2017, 10:13:55 CEST schrieb Arnd Bergmann: >> On Tue, Jul 18, 2017 at 9:58 AM, Stephan Müller wrote: >> > When selecting the LRNG for compilation, disable add_disk_randomness and >> > its supporting function. >> > >>

  1   2   3   4   5   6   7   8   9   10   >