Re: [PATCH] ipv6: initialize treq->txhash in cookie_v6_check()

2017-07-17 Thread Eric Dumazet
On Mon, 2017-07-17 at 00:39 -0700, Eric Dumazet wrote: > On Fri, 2017-07-14 at 18:54 +0200, Alexander Potapenko wrote: > > KMSAN reported use of uninitialized memory in skb_set_hash_from_sk(), > > which originated from the TCP request socket created in > > cookie_v6_check(): > > >

Re: [PATCH] mfd: Add missing Kconfig dependency for TPS65086

2017-07-17 Thread Lee Jones
On Thu, 13 Jul 2017, Michal Simek wrote: > MTF_CORE should be enabled when driver is enabled. "MFD_CORE" You also need more information here. Why is it required? What happens if it's not specified? Etc. > Signed-off-by: Michal Simek > --- > > drivers/mfd/Kconfig | 1 + > 1 file changed,

Re: [PATCH] mfd: Add missing Kconfig dependency for TPS65086

2017-07-17 Thread Michal Simek
On 17.7.2017 09:59, Lee Jones wrote: > On Thu, 13 Jul 2017, Michal Simek wrote: > >> MTF_CORE should be enabled when driver is enabled. > > "MFD_CORE" > > You also need more information here. Why is it required? What > happens if it's not specified? Etc. There is compilation warning. Fair

Re: [PATCH v2 1/2] platform: Add Amlogic Meson AO CEC Controller driver

2017-07-17 Thread Hans Verkuil
On 10/07/17 10:01, Neil Armstrong wrote: > The Amlogic SoC embeds a standalone CEC controller, this patch adds a driver > for such controller. > The controller does not need HPD to be active, and could support up to max > 5 logical addresses, but only 1 is handled since the Suspend firmware can >

Re: [PATCH 1/2] ASoC: fix pcm-creation regression

2017-07-17 Thread Johan Hovold
On Fri, Jul 14, 2017 at 03:35:46PM +0200, Linus Walleij wrote: > On Wed, Jul 12, 2017 at 5:55 PM, Johan Hovold wrote: > > > This reverts commit 99b04f4c4051 ("ASoC: add Component level > > pcm_new/pcm_free"), which started calling the pcm_new callback for every > > component in a *card* when

Re: [PATCH RFC v5] cpufreq: schedutil: Make iowait boost more energy efficient

2017-07-17 Thread Viresh Kumar
On 16-07-17, 01:04, Joel Fernandes wrote: > Currently the iowait_boost feature in schedutil makes the frequency go to max > on iowait wakeups. This feature was added to handle a case that Peter > described where the throughput of operations involving continuous I/O requests > [1] is reduced due

Re: [PATCH v4 1/3] cpufreq: mediatek: Add support of cpufreq to MT2701/MT7623 SoC

2017-07-17 Thread Jean Delvare
On Thu, 13 Jul 2017 11:54:38 +0800, Eddie Huang wrote: > On Thu, 2017-07-13 at 08:46 +0530, Viresh Kumar wrote: > > I am fine with both. Maybe don't resend for just that, mediatek > > doesn't sound any bad. > > I am also fine with both. I think most people won't confuse about mtk > and

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

2017-07-17 Thread Johan Hovold
On Fri, Jul 14, 2017 at 03:36:57PM +0200, Linus Walleij wrote: > On Wed, Jul 12, 2017 at 5:55 PM, 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

Re: [PATCH 6/9] mm, page_alloc: simplify zonelist initialization

2017-07-17 Thread Mel Gorman
On Mon, Jul 17, 2017 at 08:06:40AM +0200, Michal Hocko wrote: > On Fri 14-07-17 15:18:23, Mel Gorman wrote: > > Fairly sure that's not what you meant. > > > > > > > pg_data_t *node = NODE_DATA(node_order[i]); > > > > > > - zoneref_idx = build_zonelists_node(node, zonelist,

Re: [PATCH v4 1/3] cpufreq: mediatek: Add support of cpufreq to MT2701/MT7623 SoC

2017-07-17 Thread Jean Delvare
On Mon, 10 Jul 2017 22:23:08 +0800, sean.w...@mediatek.com wrote: > From: Sean Wang > > MT2701/MT7623 is a 32-bit ARMv7 based quad-core (4 * Cortex-A7) with > single cluster and this hardware is also compatible with the existing > driver through enabling CPU frequency feature with

Re: [PATCH v9 2/7] perf/x86/intel: Record branch type

2017-07-17 Thread Jiri Olsa
On Mon, Jul 17, 2017 at 07:06:38PM +0800, Jin Yao wrote: SNIP > +#define X86_BR_TYPE_MAP_MAX 16 > + > +static int > +common_branch_type(int type) > +{ > + int i; > + const int branch_map[X86_BR_TYPE_MAP_MAX] = { > + PERF_BR_CALL, /* X86_BR_CALL */ > +

[PATCH v2 0/5] arm64: dts: rockchip: support mail and IPA thermal for rk3399

2017-07-17 Thread Caesar Wang
This series patches supported the mail in devicetree and used the thermal IPA by default. Verified with kernel is based on Linus's master branch and Heiko's v4.14-armsoc-tmp/dts64 branch. ( The Linux version 4.12.0 for now). The most rockchip SoCs will be supported with IPA mode for thermal in

[PATCH v2 2/5] dt-bindings: gpu: add a power_model optional properties for MALI

2017-07-17 Thread Caesar Wang
This patch adds the MALI's power-model to set the IPA model to be used for power management. Signed-off-by: Caesar Wang --- Changes in v2: None Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt | 12 1 file changed, 12 insertions(+) diff --git

[PATCH v2 5/5] arm64: dts: rockchip: update the thermal zones for RK3399 SoCs

2017-07-17 Thread Caesar Wang
As RK3399 had used the Power allocator thermal governor by default, enabled this to manage thermals by dynamically allocating and limiting power to devices. Also, this patch supported the dynamic-power-coefficient/sustainable_power and GPU's power model for needed parameters with thermal IPA.

[PATCH v2 4/5] arm64: dts: rockchip: enable the GPU for RK3399-GRU

2017-07-17 Thread Caesar Wang
This patch enables the gpu and adds the mali-supply power for RK3399-GRU devices. Signed-off-by: Caesar Wang --- Changes in v2: None arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi

Re: [PATCH 0/5] Add a script to check for Sphinx install requirements

2017-07-17 Thread Markus Heiser
> Am 17.07.2017 um 00:08 schrieb Mauro Carvalho Chehab > : > > [1] There's an unrelated bug with the Kernel's sphinx extension > kimage: when parsing GraphViz graphs, it uses "-Tpdf" argument, > in order to generate a PDF image. That doesn't work on some > distros, as GraphViz doesn't support

[PATCH v2 3/5] arm64: dts: rockchip: add ARM Mali GPU node for RK3399 SoCs

2017-07-17 Thread Caesar Wang
Add Mali GPU device tree node for the RK3399 SoCs, with devfreq opp table. RK3399 and RK3399-OP1 SoCs have a different recommendation table with gpu opp. Also, the ARM's mali driver found on https://developer.arm.com/products/software/mali-drivers/midgard-kernel. Signed-off-by: Caesar Wang ---

Re: [PATCH 1/8] signal/alpha: Document a conflict with SI_USER for SIGTRAP

2017-07-17 Thread Michael Cree
On Fri, Jul 14, 2017 at 05:59:06AM -0500, Eric W. Biederman wrote: > in which cases the oddities will happen let alone test them. Plus at > least for ia64 and alpha those architectures don't appear to be > receiving updates for new syscalls, and no new hardware is being built > so I don't know

[PATCH v2 1/5] dt-bindings: gpu: add the RK3399 mali for rockchip specifics

2017-07-17 Thread Caesar Wang
RK3399's GPU uses the quad-core Mali-T860, which is the new generation of high-end graphics processors from ARM. This patch added "rockchip,rk3399-mali" for dt-bindings, in order to support IPA of gpu thermal in later. Signed-off-by: Caesar Wang --- Changes in v2: None

Re: [PATCH 6/9] mm, page_alloc: simplify zonelist initialization

2017-07-17 Thread Michal Hocko
On Mon 17-07-17 09:07:23, Mel Gorman wrote: > On Mon, Jul 17, 2017 at 08:06:40AM +0200, Michal Hocko wrote: > > On Fri 14-07-17 15:18:23, Mel Gorman wrote: > > > Fairly sure that's not what you meant. > > > > > > > > > > pg_data_t *node = NODE_DATA(node_order[i]); > > > > > > >

Re: [PATCH v9 0/7] perf report: Show branch type

2017-07-17 Thread Jiri Olsa
On Mon, Jul 17, 2017 at 07:06:36PM +0800, Jin Yao wrote: > v9: > --- >It only changes the patch "perf/x86/intel: Record branch type". >Peter suggests to use __ffs() to find first bit. >Yes, with this change, the code is simpler and clearer. > >No other functional changes. I think

Re: [PATCH v2 1/3] mux: Add mux_control_get_optional() API

2017-07-17 Thread Peter Rosin
Generally looks like I imagined, but there are a few nits and some things that I'd like to do differently. Comments inline. Thanks! On 2017-07-14 23:40, Stephen Boyd wrote: > Sometimes drivers only use muxes under certain scenarios. For > example, the chipidea usb controller may be connected to a

Re: [PATCH] edac: constify attribute_group structures.

2017-07-17 Thread Borislav Petkov
On Mon, Jul 03, 2017 at 04:09:33PM +0530, Arvind Yadav wrote: > attribute_groups are not supposed to change at runtime. All functions > working with attribute_groups provided by work with const > attribute_group. So mark the non-const structs as const. > > File size before: >text

[PATCH] documentation: Fix two-CPU control-dependency example

2017-07-17 Thread Akira Yokosawa
>From b798b9b631e237d285aa8699da00bfb8ced33bea Mon Sep 17 00:00:00 2001 From: Akira Yokosawa Date: Mon, 17 Jul 2017 16:25:33 +0900 Subject: [PATCH] documentation: Fix two-CPU control-dependency example In commit 5646f7acc95f ("memory-barriers: Fix control-ordering no-transitivity example"), the

[RESEND,PATCH v4 0/2] Add support for the STM32F4 CRC32

2017-07-17 Thread Cosar Dindar
This patch series add hardware CRC32 ("Ethernet") calculation support for STMicroelectronics STM32F429. Polynomial and key setting are not supported, key is fixed as 0x4C11DB7 and poly is 0x. Module is tested on STM32F429-disco board with crypto testmgr using cases within the key

[RESEND,PATCH v4 2/3] dt-bindings : Document the STM32F4 CRC32 binding

2017-07-17 Thread Cosar Dindar
Add device tree binding for STM32F4. Signed-off-by: Cosar Dindar --- Documentation/devicetree/bindings/crypto/st,stm32-crc.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/crypto/st,stm32-crc.txt

[RESEND,PATCH v4 3/3] crypto : stm32 - Add STM32F4 CRC32 support

2017-07-17 Thread Cosar Dindar
This patch adds CRC (CRC32 Crypto) support for STM32F4 series. As an hardware limitation polynomial and key setting are not supported. They are fixed as 0x4C11DB7 (poly) and 0x (key). CRC32C Castagnoli algorithm is not used. Signed-off-by: Cosar Dindar Reviewed-by: Fabien Dessenne ---

Re: [PATCH v9 2/7] perf/x86/intel: Record branch type

2017-07-17 Thread Jin, Yao
On 7/17/2017 4:11 PM, Jiri Olsa wrote: On Mon, Jul 17, 2017 at 07:06:38PM +0800, Jin Yao wrote: SNIP +#define X86_BR_TYPE_MAP_MAX16 + +static int +common_branch_type(int type) +{ + int i; + const int branch_map[X86_BR_TYPE_MAP_MAX] = { + PERF_BR_CALL,

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

2017-07-17 Thread Michal Hocko
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, the worst case is that the starting node which be found >

Re: [PATCH] EDAC: remove unnecessary static in edac_fake_inject_write()

2017-07-17 Thread Borislav Petkov
On Tue, Jul 04, 2017 at 04:44:40PM -0500, Gustavo A. R. Silva wrote: > Remove unnecessary static on local variable _type_. > Such variable is initialized before being used, > on every execution path throughout the function. > The static has no benefit and, removing it reduces > the code size. > >

Re: [PATCH] cpufreq: s5pv210: add missing of_node_put

2017-07-17 Thread Viresh Kumar
On 15-07-17, 21:40, Julia Lawall wrote: > for_each_compatible_node performs an of_node_get on each iteration, so a > return from the loop requires an of_node_put. > > The semantic patch that fixes this problem is as follows > (http://coccinelle.lip6.fr): > > // > @@ > local idexpression n; >

Re: [PATCH 02/18] drm/sun4i: Add if statement instead of depends on

2017-07-17 Thread Maxime Ripard
On Fri, Jul 14, 2017 at 11:09:07AM +0800, Chen-Yu Tsai wrote: > On Thu, Jul 13, 2017 at 10:12 PM, Maxime Ripard > wrote: > > The depends on relationship is obvious, and using an if statement will > > propagate it to every option without the need for each and every one of > > them to define it. >

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

2017-07-17 Thread zijun_hu
On 07/17/2017 04:07 PM, Zhaoyang Huang wrote: > 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

Re: [PATCH 04/18] drm/sun4i: Remove useless atomic_check

2017-07-17 Thread Maxime Ripard
On Fri, Jul 14, 2017 at 11:15:18AM +0800, Chen-Yu Tsai wrote: > On Thu, Jul 13, 2017 at 10:12 PM, Maxime Ripard > wrote: > > The atomic_check callback is optional, and we don't implement anything in > > some parts of our drivers. Let's remove it. > > > > Signed-off-by: Maxime Ripard > >

Re: [PATCH 01/14] qcom: mtd: nand: Add driver data for QPIC DMA

2017-07-17 Thread Abhishek Sahu
On 2017-07-17 12:52, Boris Brezillon wrote: On Mon, 17 Jul 2017 11:41:01 +0530 Abhishek Sahu wrote: >> > + >> > +nand@79b { > > nand-controller@ { > > BTW, glad to see another driver moving to the new DT representation > :-). > >> > + compatible = "qcom,qpic-nandc-v1.4.0"; >> > + reg

Re: [PATCH v6 1/6] clk: sunxi-ng: div: Add support for fixed post-divider

2017-07-17 Thread Maxime Ripard
On Fri, Jul 14, 2017 at 05:49:23PM +0300, Priit Laes wrote: > SATA clock on sun4i/sun7i is of type (parent) / M / 6 where > 6 is fixed post-divider. > > Signed-off-by: Priit Laes > --- > drivers/clk/sunxi-ng/ccu_div.c | 15 +-- > drivers/clk/sunxi-ng/ccu_div.h | 3 ++- > 2 files

Re: [PATCH v3 1/2] extcon: cros-ec: Add extcon-cros-ec driver to support display out.

2017-07-17 Thread Chanwoo Choi
Hi Enric, When I tried to apply this patch, error happened as following: (based on v4.13-rc1) Applying: extcon: cros-ec: Add extcon-cros-ec driver to support display out. error: patch failed: include/linux/mfd/cros_ec_commands.h:285 error: include/linux/mfd/cros_ec_commands.h: patch does not

Re: [PATCH v6 2/6] clk: sunxi-ng: Add sun4i/sun7i CCU driver

2017-07-17 Thread Maxime Ripard
Hi, On Fri, Jul 14, 2017 at 05:49:24PM +0300, Priit Laes wrote: > Introduce a clock controller driver for sun4i A10 and sun7i A20 > series SoCs. > > Signed-off-by: Priit Laes > --- > drivers/clk/sunxi-ng/Kconfig | 13 +- > drivers/clk/sunxi-ng/Makefile |1 +- >

Re: [PATCH v2] mm/page_alloc: Wait for oom_lock before retrying.

2017-07-17 Thread Michal Hocko
On Sun 16-07-17 19:59:51, Tetsuo Handa wrote: > Since the whole memory reclaim path has never been designed to handle the > scheduling priority inversions, those locations which are assuming that > execution of some code path shall eventually complete without using > synchronization mechanisms can

Re: [GIT PULL] MFD for v4.13

2017-07-17 Thread Charles Keepax
On Fri, Jul 07, 2017 at 11:50:14PM +0100, Lee Jones wrote: > On Fri, 07 Jul 2017, Linus Torvalds wrote: > > > On Fri, Jul 7, 2017 at 2:50 AM, Lee Jones wrote: > > > > > > include/linux/mfd/madera/registers.h | 8832 > > > > > > > So I've pulled everything but

Re: [PATCH 6/9] mm, page_alloc: simplify zonelist initialization

2017-07-17 Thread Mel Gorman
On Mon, Jul 17, 2017 at 10:19:42AM +0200, Michal Hocko wrote: > On Mon 17-07-17 09:07:23, Mel Gorman wrote: > > On Mon, Jul 17, 2017 at 08:06:40AM +0200, Michal Hocko wrote: > > > On Fri 14-07-17 15:18:23, Mel Gorman wrote: > > > > Fairly sure that's not what you meant. > > > > > > > > > > > > >

[PATCH 1/4] venus: mark PM functions as __maybe_unused

2017-07-17 Thread Stanimir Varbanov
From: Arnd Bergmann Without PM support, gcc warns about two unused functions: platform/qcom/venus/core.c:146:13: error: 'venus_clks_disable' defined but not used [-Werror=unused-function] platform/qcom/venus/core.c:126:12: error: 'venus_clks_enable' defined but not used

[PATCH 2/4] media: venus: don't abuse dma_alloc for non-DMA allocations

2017-07-17 Thread Stanimir Varbanov
In venus_boot(), we pass a pointer to a phys_addr_t into dmam_alloc_coherent, which the compiler warns about: platform/qcom/venus/firmware.c: In function 'venus_boot': platform/qcom/venus/firmware.c:63:49: error: passing argument 3 of 'dmam_alloc_coherent' from incompatible pointer type

[RFC PATCH 2/2] ARM: NOMMU: Wire-up default DMA interface

2017-07-17 Thread Vladimir Murzin
The way how default DMA pool is exposed has changed and now we need to use dedicated interface to work with it. This patch makes alloc/release operations to use such interface. Since default DMA pool is not handled by generic code anymore we have to implement our own mmap operation.

[RFC PATCH 1/2] drivers: dma-coherent: Introduce interface for default DMA pool

2017-07-17 Thread Vladimir Murzin
Christoph noticed [1] that default DMA pool in current form overload the DMA coherent infrastructure. In reply, Robin suggested to split the per-device vs. global pool interfaces, so allocation/release from default DMA pool is driven by dma ops implementation. This patch implements Robin's idea

[RFC PATCH 0/2] Introduce interface for default DMA pool

2017-07-17 Thread Vladimir Murzin
Hi, This is follow-up for Christoph complain of overloading the current dma coherent infrastructure with the global pool. To address that I implemented Robin's idea of the new interface to the global pool and wire up it with (only existent user) ARM NOMMU. Since I have not heard from Vitaly

[PATCH 4/4] media: venus: hfi: fix error handling in hfi_sys_init_done()

2017-07-17 Thread Stanimir Varbanov
From: Rob Clark Not entirely sure what triggers it, but with venus build as kernel module and in initrd, we hit this crash: Unable to handle kernel paging request at virtual address 80003c039000 pgd = 0a14f000 [80003c039000] *pgd=bd9f7003, *pud=bd9f6003,

[PATCH 3/4] venus: fix compile-test build on non-qcom ARM platform

2017-07-17 Thread Stanimir Varbanov
From: Arnd Bergmann If QCOM_MDT_LOADER is enabled, but ARCH_QCOM is not, we run into a build error: ERROR: "qcom_mdt_load" [drivers/media/platform/qcom/venus/venus-core.ko] undefined! ERROR: "qcom_mdt_get_size" [drivers/media/platform/qcom/venus/venus-core.ko] undefined! This changes the

[PATCH 0/4] Venus fixes for v4.13-rc1

2017-07-17 Thread Stanimir Varbanov
Hi, Here is a collection of fixes for the issues found so far. The patches 1/4, 3/4 and 4/4 has been already sent to the linux-media. 2/4 is a reworked version of [1], which has been sent from Arnd, but the change was not correct, so please review it. Arnd Bergmann (2): venus: mark PM

Re: [PATCH 01/18] regmap: mmio: Add function to attach a clock

2017-07-17 Thread Maxime Ripard
Hi Mark, On Thu, Jul 13, 2017 at 05:01:42PM +0100, Mark Brown wrote: > On Thu, Jul 13, 2017 at 04:12:56PM +0200, Maxime Ripard wrote: > > > This might be problematic if the clock to enable is stored in another node. > > Let's add a function that allows to attach a clock that has already been > >

Re: [PATCH v3 1/2] extcon: cros-ec: Add extcon-cros-ec driver to support display out.

2017-07-17 Thread Enric Balletbo Serra
Hi, 2017-07-17 10:54 GMT+02:00 Chanwoo Choi : > Hi Enric, > > When I tried to apply this patch, error happened as following: > (based on v4.13-rc1) > > Applying: extcon: cros-ec: Add extcon-cros-ec driver to support display out. > error: patch failed: include/linux/mfd/cros_ec_commands.h:285 >

Re: [PATCH v3 1/2] extcon: cros-ec: Add extcon-cros-ec driver to support display out.

2017-07-17 Thread Chanwoo Choi
Hi, On 2017년 07월 17일 17:54, Chanwoo Choi wrote: > Hi Enric, > > When I tried to apply this patch, error happened as following: > (based on v4.13-rc1) > > Applying: extcon: cros-ec: Add extcon-cros-ec driver to support display out. > error: patch failed: include/linux/mfd/cros_ec_commands.h:285

Re: [PATCH 17/18] arm: dts: sun8i: Add BananaPI M2-Magic DTS

2017-07-17 Thread Maxime Ripard
On Fri, Jul 14, 2017 at 12:40:19PM +0800, Chen-Yu Tsai wrote: > On Thu, Jul 13, 2017 at 10:13 PM, Maxime Ripard > wrote: > > The Bananapi M2-Magic is a board with an A33, a USB host and USB OTG > > connectors, and 8GB eMMC, an AP6212 WiFi/Bluetooth chip and connectors for > > DSI, CSI and GPIOs.

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

2017-07-17 Thread zijun_hu
On 07/17/2017 04:45 PM, zijun_hu wrote: > On 07/17/2017 04:07 PM, Zhaoyang Huang wrote: >> 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

Re: A udev rule to serve the change event of ACPI container?

2017-07-17 Thread Michal Hocko
On Fri 14-07-17 22:44:14, Joey Lee wrote: > On Fri, Jul 14, 2017 at 10:37:13AM +0200, Michal Hocko wrote: > > On Thu 13-07-17 20:45:21, Joey Lee wrote: > > > On Thu, Jul 13, 2017 at 09:06:19AM +0200, Michal Hocko wrote: > > > > On Thu 13-07-17 14:58:06, Joey Lee wrote: > > [...] > > > > > If BIOS

Re: [PATCH 01/11] ARM: dts: sun8i: a83t: Switch to CCU device tree binding macros

2017-07-17 Thread Maxime Ripard
On Fri, Jul 14, 2017 at 02:42:52PM +0800, Chen-Yu Tsai wrote: > Now that the CCU device tree binding headers have been merged, we can > use the properly named macros in the device tree, instead of raw > numbers. > > Signed-off-by: Chen-Yu Tsai > --- > > This patch is included as it is a

Re: [PATCH] drm/i915: Consistently use enum pipe for PCH transcoders

2017-07-17 Thread Daniel Vetter
On Fri, Jul 14, 2017 at 06:04:03PM -0700, Matthias Kaehlcke wrote: > The current code uses two different enum types for PCH transcoders and > performs implicit conversions between the two types. This is error prone > and causes clang to raise warnings like this: > >

[PATCH][next] net: bcmgenet: return NULL rather than 0 for null pointer

2017-07-17 Thread Colin King
From: Colin Ian King Don't return plain integer 0, instead return NULL Fixes sparse warning: warning: Using plain integer as NULL pointer Signed-off-by: Colin Ian King --- drivers/net/ethernet/broadcom/genet/bcmgenet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 02/11] clk: sunxi-ng: Add interface to query or configure MMC timing modes.

2017-07-17 Thread Maxime Ripard
Hi, On Fri, Jul 14, 2017 at 02:42:53PM +0800, Chen-Yu Tsai wrote: > Starting with the A83T SoC, Allwinner introduced a new timing mode for > its MMC clocks. The new mode changes how the MMC controller sample and > output clocks are delayed to match chip and board specifics. There are > two

Re: [PATCH 1/6] mm/zone-device: rename DEVICE_PUBLIC to DEVICE_HOST

2017-07-17 Thread Balbir Singh
On Thu, 2017-07-13 at 17:15 -0400, Jérôme Glisse wrote: > Existing user of ZONE_DEVICE in its DEVICE_PUBLIC variant are not tie > to specific device and behave more like host memory. This patch rename > DEVICE_PUBLIC to DEVICE_HOST and free the name DEVICE_PUBLIC to be use > for cache coherent

Re: [PATCH 4/6] mm/memcontrol: allow to uncharge page without using page->lru field

2017-07-17 Thread Balbir Singh
On Thu, 2017-07-13 at 17:15 -0400, Jérôme Glisse wrote: > HMM pages (private or public device pages) are ZONE_DEVICE page and > thus you can not use page->lru fields of those pages. This patch > re-arrange the uncharge to allow single page to be uncharge without > modifying the lru field of the

Re: [PATCH v3 0/5] Add SoM1 support

2017-07-17 Thread Alexandre Belloni
On 06/07/2017 at 11:35:24 +0300, Claudiu Beznea wrote: > Hi all, > > This series adds support for sama5d2 SoM1 devices. > > The at91-sama5d27_som1.dtsi add specific bindings for SoM1 board. > The at91-sama5d27_som1_ek.dts add specific bindings for SoM1 EK board. > > Thank you, > Claudiu > >

Re: [PATCH 03/11] clk: sunxi-ng: a83t: Support new timing mode for mmc2 clock

2017-07-17 Thread Maxime Ripard
Hi, On Fri, Jul 14, 2017 at 02:42:54PM +0800, Chen-Yu Tsai wrote: > The MMC2 clock supports a new timing mode. When the new mode is active, > the output clock rate is halved. > > This patch sets the feature flag for the new timing mode, and adds > a pre-divider based on the mode bit. > >

Re: [PATCH 04/11] mmc: sunxi: Keep default timing phase settings for new timing mode

2017-07-17 Thread Maxime Ripard
On Fri, Jul 14, 2017 at 02:42:55PM +0800, Chen-Yu Tsai wrote: > The register for the "new timing mode" also has bit fields for setting > output and sample timing phases. According to comments in Allwinner's > BSP kernel, the default values are good enough. > > Keep the default values already in

Re: [PATCH 6/9] mm, page_alloc: simplify zonelist initialization

2017-07-17 Thread Michal Hocko
On Mon 17-07-17 09:58:04, Mel Gorman wrote: > On Mon, Jul 17, 2017 at 10:19:42AM +0200, Michal Hocko wrote: > > On Mon 17-07-17 09:07:23, Mel Gorman wrote: > > > On Mon, Jul 17, 2017 at 08:06:40AM +0200, Michal Hocko wrote: > > > > On Fri 14-07-17 15:18:23, Mel Gorman wrote: > > > > > Fairly sure

Re: [PATCH v2] ARM: dts: at91: sama5d2_xplained: use pin macros instead of numbers

2017-07-17 Thread Alexandre Belloni
On 10/07/2017 at 08:12:05 +0200, Ludovic Desroches wrote: > Use pin macros instead of magic numbers to ease interpretation. > > Signed-off-by: Ludovic Desroches > --- > > I have remove the unexpected brace removal from the first version of this > patch. > >

Re: [PATCH 5/6] mm/memcontrol: support MEMORY_DEVICE_PRIVATE and MEMORY_DEVICE_PUBLIC v3

2017-07-17 Thread Balbir Singh
On Thu, 2017-07-13 at 17:15 -0400, Jérôme Glisse wrote: > HMM pages (private or public device pages) are ZONE_DEVICE page and > thus need special handling when it comes to lru or refcount. This > patch make sure that memcontrol properly handle those when it face > them. Those pages are use like

[PATCH v2 0/3] Constify lustre attribute_group structures.

2017-07-17 Thread Arvind Yadav
ttribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So mark the non-const structs as const. Arvind Yadav (3): [PATCH v2 1/3] staging: lustre: constify attribute_group structures. [PATCH v2 2/3]

[PATCH v2 1/3] staging: lustre: constify attribute_group structures.

2017-07-17 Thread Arvind Yadav
attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So mark the non-const structs as const. File size before: textdata bss dec hex filename 9489 992 40 105212919

[zram] ltp inspired explosion - master v4.13-rc1-3-g87b2c3fc6317

2017-07-17 Thread Mike Galbraith
Greetings, Running ltp zram testcases, met the below. [ 1347.685763] loop: module loaded [ 1347.809396] zram: Added device: zram0 [ 1347.813256] zram: Added device: zram1 [ 1347.817100] zram: Added device: zram2 [ 1347.820941] zram: Added device: zram3 [ 1347.846747] zram0: detected capacity

[PATCH v2 3/3] staging: lustre: obdclass: linux: constify attribute_group structures.

2017-07-17 Thread Arvind Yadav
attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/staging/lustre/lustre/obdclass/linux/linux-module.c | 2 +-

Re: [PATCH 3/3] ARM: dts: at91: sama5d2: use sama5d2 compatible string for SMC

2017-07-17 Thread Alexandre Belloni
On 11/07/2017 at 09:40:15 +0200, Ludovic Desroches wrote: > A new compatible string has been introduced for sama5d2 SMC to allow to > manage the registers mapping change. > > Signed-off-by: Ludovic Desroches > --- > arch/arm/boot/dts/sama5d2.dtsi | 2 +- > 1 file changed, 1 insertion(+), 1

RE: [PATCH 04/22] scsi: fusion: fix string overflow warning

2017-07-17 Thread David Laight
From: Arnd Bergmann > Sent: 14 July 2017 13:07 > gcc points out a theorerical string overflow: > > drivers/message/fusion/mptbase.c: In function 'mpt_detach': > drivers/message/fusion/mptbase.c:2103:17: error: '%s' directive writing up to > 31 bytes into a region > of size 28

Re: [PATCH 05/11] mmc: sunxi: Support controllers that can use both old and new timings

2017-07-17 Thread Maxime Ripard
Hi, On Fri, Jul 14, 2017 at 02:42:56PM +0800, Chen-Yu Tsai wrote: > On the SoCs that introduced the new timing mode for MMC controllers, > both the old (where the clock delays are set in the CCU) and new > (where the clock delays are set in the MMC controller) timing modes > are available, and we

[PATCH v2 2/3] staging: lustre: ldlm: constify attribute_group structures.

2017-07-17 Thread Arvind Yadav
attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c | 2 +- 1 file changed, 1

Re: [PATCH] fs: jbd2: transaction: Add kernel-doc parameter descriptions

2017-07-17 Thread Jan Kara
On Mon 26-06-17 10:20:22, sayli karnik wrote: > Add function parameters in kernel-doc comments to fix warnings in the > Sphinx build: > transaction.c:511: warning: No description found for parameter 'type' > transaction.c:511: warning: No description found for parameter 'line_no' > >

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

2017-07-17 Thread Peter Zijlstra
On Fri, Jul 14, 2017 at 09:03:14AM -0700, Andi Kleen wrote: > fast idle doesn't have an upper bound. > > If the prediction exceeds the fast idle threshold any C state can be used. > > It's just another state (fast C1), but right now it has an own threshold > which may be different from standard

Re: [PATCH 05/11] mmc: sunxi: Support controllers that can use both old and new timings

2017-07-17 Thread Maxime Ripard
On Fri, Jul 14, 2017 at 11:57:35AM +0200, Ulf Hansson wrote: > >>> + if (host->use_new_timings) { > >>> + ret = sunxi_ccu_set_mmc_timing_mode(host->clk_mmc, true); > >> > >> Can't this be solved through some other generic API/interface? > > > > The old discussion is here:

Re: [PATCH 08/11] ARM: dts: sun8i: a83t: Add MMC controller device nodes

2017-07-17 Thread Maxime Ripard
Hi, On Fri, Jul 14, 2017 at 02:42:59PM +0800, Chen-Yu Tsai wrote: > The A83T has 3 MMC controllers. The third one is a bit special, as it > supports a wider 8-bit bus, and a "new timing mode". > > Signed-off-by: Chen-Yu Tsai > --- > arch/arm/boot/dts/sun8i-a83t.dtsi | 57 >

Re: [PATCH v2 1/3] dmaengine: add DMA_PREP_CMD for non-Data descriptors.

2017-07-17 Thread Abhishek Sahu
On 2017-06-26 18:19, Abhishek Sahu wrote: Some of the DMA controllers are capable of issuing the commands to peripheral by the DMA. These commands can be list of register reads/writes and its different from normal data reads/writes. This patch adds new flag DMA_PREP_CMD in DMA API which tells

[PATCH] staging: unisys: visorbus: constify attribute_group structures.

2017-07-17 Thread Arvind Yadav
attribute_groups are not supposed to change at runtime. All functions working with attribute_groups 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 ++--

Re: [PATCH 2/2] x86/idle: use dynamic halt poll

2017-07-17 Thread Yang Zhang
On 2017/7/14 17:37, Alexander Graf wrote: On 13.07.17 13:49, Yang Zhang wrote: On 2017/7/4 22:13, Radim Krčmář wrote: 2017-07-03 17:28+0800, Yang Zhang: The background is that we(Alibaba Cloud) do get more and more complaints from our customers in both KVM and Xen compare to

Re: [PATCH] printk: modify console_unlock with printk-safe macros

2017-07-17 Thread Sergey Senozhatsky
On (07/15/17 18:36), Pierre Kuo wrote: [..] > diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c > index fc47863..21557cc 100644 > --- a/kernel/printk/printk.c > +++ b/kernel/printk/printk.c > @@ -2194,8 +2194,7 @@ void console_unlock(void) > size_t ext_len = 0; >

Re: [PATCH] PCI: dwc: designware: test PCIE_ATU_ENABLE bit to check enabled or not

2017-07-17 Thread Joao Pinto
Hi, Às 11:35 AM de 7/13/2017, Jisheng Zhang escreveu: > The ATU CTRL2 register is 32 bit, besides the enable bit, other bits > may also be set. To check whether the ATU is enabled or not, we should > test the enable it. > > Signed-off-by: Jisheng Zhang > --- > drivers/pci/dwc/pcie-designware.c

Re: [PATCHv2 0/6] Motorola Droid 4 Audio Support

2017-07-17 Thread Tony Lindgren
* Sebastian Reichel [170712 08:19]: > * Switch from simple-audio-card to audio-graph-card Gave this a quick try against v4.13-rc1 with SND_AUDIO_GRAPH_CARD enabled as a loadable module. However loading it oopses for me, see below. Maybe some dependencies are missing? Regards, Tony 8<

[PATCH v2] mfd: Add missing Kconfig dependency for TPS65086

2017-07-17 Thread Michal Simek
MTF_CORE should be enabled when driver is enabled. Without this patch you can configure: CONFIG_MFD_CORE is not set CONFIG_MFD_TPS65086=y which ends up with compilation error: drivers/mfd/tps65086.o: In function `tps65086_probe': drivers/mfd/tps65086.c:110: undefined reference to

Re: [PATCHv2 3/6] ASoC: codec: cpcap: new codec

2017-07-17 Thread Tony Lindgren
* Sebastian Reichel [170712 08:19]: > diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig > index 6c78b0b49b81..1615e5acc8fd 100644 > --- a/sound/soc/codecs/Kconfig > +++ b/sound/soc/codecs/Kconfig > @@ -401,6 +401,11 @@ config SND_SOC_ALC5632 > config SND_SOC_BT_SCO >

Re: [PATCH 0/5] Add a script to check for Sphinx install requirements

2017-07-17 Thread Mauro Carvalho Chehab
Em Mon, 17 Jul 2017 10:15:26 +0200 Markus Heiser escreveu: > > Am 17.07.2017 um 00:08 schrieb Mauro Carvalho Chehab > > : > > > > [1] There's an unrelated bug with the Kernel's sphinx extension > > kimage: when parsing GraphViz graphs, it uses "-Tpdf" argument, > > in order to generate a PDF

Re: [PATCH 3/5] sphinx-pre-install: use a requirements file

2017-07-17 Thread Mauro Carvalho Chehab
Em Mon, 17 Jul 2017 08:00:07 +0200 Markus Heiser escreveu: > > Am 17.07.2017 um 00:08 schrieb Mauro Carvalho Chehab > > : > > > > Instead of using 3 commands to install a virtualenv, use > > a single one, reading the requirements from this file: > > > >

[PATCH] net/unix: drop obsolete fd-recursion limits

2017-07-17 Thread David Herrmann
All unix sockets now account inflight FDs to the respective sender. This was introduced in: commit 712f4aad406bb1ed67f3f98d04c044191f0ff593 Author: willy tarreau Date: Sun Jan 10 07:54:56 2016 +0100 unix: properly account for FDs passed over unix sockets and further

Re: [PATCH v2] sctp: don't dereference ptr before leaving _sctp_walk_{params,errors}()

2017-07-17 Thread Alexander Potapenko
On Fri, Jul 14, 2017 at 7:54 PM, David Miller wrote: > From: Alexander Potapenko > Date: Fri, 14 Jul 2017 19:33:54 +0200 > >> On Fri, Jul 14, 2017 at 7:23 PM, David Miller wrote: >>> From: Alexander Potapenko >>> Date: Fri, 14 Jul 2017 18:33:01 +0200 >>> On Fri, Jul 14, 2017 at 5:58 PM,

Re: [PATCH] ARM: dts: at91: sama5d2: fix EBI/NAND controllers declaration

2017-07-17 Thread Alexandre Belloni
On 07/07/2017 at 15:33:10 +0200, Ludovic Desroches wrote: > Fix HSMC interrupt ID, PMECC registers and EBI ones. > > Signed-off-by: Ludovic Desroches > --- > arch/arm/boot/dts/sama5d2.dtsi | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) > Applied, thanks. -- Alexandre

[PATCH v3.1 2/2] dt-bindings: extcon: Add support for cros-ec device

2017-07-17 Thread Enric Balletbo i Serra
From: Benson Leung This patch add documentation for binding of USB Type C cable detection mechanism is using EXTCON subsystem. The device can detect the presence of display out but it may also detect other external accessories when external accessories is attached or detached. Signed-off-by:

[PATCH v3.1 1/2] extcon: cros-ec: Add extcon-cros-ec driver to support display out.

2017-07-17 Thread Enric Balletbo i Serra
From: Benson Leung This is the driver for the USB Type C cable detection mechanism built into the ChromeOS Embedded Controller on systems that have USB Type-C ports. At present, this allows for the presence of display out, but in future, it may also be used to notify host and device type cables

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

2017-07-17 Thread Borislav Petkov
From: Borislav Petkov Paul Menzel asked recently how to load microcode on a system and I realized that we don't really have all the methods written down somewhere. Do that, so people can go and look them up. Signed-off-by: Borislav Petkov --- Documentation/x86/early-microcode.txt | 70

Re: [PATCH v5 13/14] drm: stm: remove dead code and pointless local lut storage

2017-07-17 Thread Philippe CORNU
On 07/13/2017 06:25 PM, Peter Rosin wrote: > The redundant fb helper .load_lut is no longer used, and can not > work right without also providing the fb helpers .gamma_set and > .gamma_get thus rendering the code in this driver suspect. > > Just remove the dead code. > > Acked-by: Daniel

Re: [PATCH v1 1/2] ACPI / boot: Correct address space of __acpi_map_table()

2017-07-17 Thread Hanjun Guo
On 2017/7/8 23:50, Andy Shevchenko wrote: > Sparse complains about wrong address space used in __acpi_map_table() > and in __acpi_unmap_table(). > > arch/x86/kernel/acpi/boot.c:127:29: warning: incorrect type in return > expression (different address spaces) > arch/x86/kernel/acpi/boot.c:127:29:

Re: Droid 4 boot failure due to 422580c3cea7 (mm/oom_kill.c: add tracepoints for oom reaper-related events)

2017-07-17 Thread Sebastian Reichel
Hi, On Sun, Jul 16, 2017 at 10:59:42PM -0700, Tony Lindgren wrote: > * Roman Gushchin [170716 05:55]: > > On Fri, Jul 14, 2017 at 07:23:43PM +0200, Sebastian Reichel wrote: > > > On Fri, Jul 14, 2017 at 02:12:21PM +, Roman Gushchin wrote: > > > > > On 14 Jul 2017, at 14:43, Sebastian Reichel

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

2017-07-17 Thread Quentin Schulz
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 --- drivers/mfd/axp20x.c | 12 ++-- 1 file

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

2017-07-17 Thread Quentin Schulz
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 necessary code to handle the different platform_device_ids. Signed-off-by: Quentin Schulz --- drivers/input/misc/axp20x-pek.c | 62

<    8   9   10   11   12   13   14   15   16   17   >