Re: [PATCH v4 00/16] genrtc removal

2016-05-30 Thread Geert Uytterhoeven
Allo Alexandre, On Mon, May 30, 2016 at 10:32 PM, Alexandre Belloni wrote: > On 30/05/2016 at 20:57:48 +0200, Arnd Bergmann wrote : >> This is the promised resend of the removal of the genrtc driver and some >> related code, now that we are at a good time to merge this for the coming >> merge win

Re: [PATCH] Add virtio gpu driver.

2016-05-30 Thread Daniel Vetter
On Tue, May 31, 2016 at 8:29 AM, Gerd Hoffmann wrote: >> but it also means that >> atomic userspace can't use hotspots before we add properties to fbs. And >> doing that is a bit tricky since drm_framebuffer objects are meant to be >> invariant - this assumption is deeply in-grained into the code

Re: [RFC PATCH 2/4] mm: Change the interface for __tlb_remove_page

2016-05-30 Thread Aneesh Kumar K.V
Hillf Danton writes: >> >> @@ -1202,7 +1205,12 @@ again: >> >> if (force_flush) { >> >> force_flush = 0; >> >> tlb_flush_mmu_free(tlb); >> >> - >> >> + if (pending_page) { >> >> + /* remove the page with new size */ >> >> + __tlb_adjus

Re: [PATCH 0/5] ARM: dts: omap3-gta04: Various updates

2016-05-30 Thread Belisko Marek
Ping? Any objections? Thanks. On Tue, May 17, 2016 at 9:48 PM, Marek Belisko wrote: > Add various improvements for gta04 device (wifi, backlight, irq lines for > sensors) > > H. Nikolaus Schaller (4): > ARM: dts: omap3-gta04: Define and use bma180 irq pin > ARM: dta: omap3-gta04: Define and

Vulnerability [CVE-2014-4608] recurs in Linux 3.17.2-4.5

2016-05-30 Thread 刘长鸣
Dear Sir/Madam: I'm a postgraduate student majoring in information security and I'm very interested in software vulnerabilities, I think it's really fascinating and I'm doing some research about how to find vulnerabilities automatically. I have done some tests with Linux bug commits. And I fou

[PATCH 1/2] Documentation: bindings: add DT documentation for Rockchip USB2PHY

2016-05-30 Thread Frank Wang
Signed-off-by: Frank Wang --- .../bindings/phy/phy-rockchip-inno-usb2.txt| 48 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/phy-rockchip-inno-usb2.txt diff --git a/Documentation/devicetree/bindings/phy/phy-rockchip-inn

[PATCH 0/2] Add a new Rockchip usb2 phy driver

2016-05-30 Thread Frank Wang
The newer SoCs (rk3366, rk3399) of Rock-chip take a different usb-phy IP block than rk3288 and before, and most of phy-related registers are also different from the past, so a new phy driver is required necessarily. These series patches add phy-rockchip-inno-usb2.c and the corresponding documentat

[PATCH 2/2] phy: rockchip-inno-usb2: add a new driver for Rockchip usb2phy

2016-05-30 Thread Frank Wang
The newer SoCs (rk3366, rk3399) take a different usb-phy IP block than rk3288 and before, and most of phy-related registers are also different from the past, so a new phy driver is required necessarily. Signed-off-by: Frank Wang --- drivers/phy/Kconfig |7 + drivers/phy/Make

Re: [PATCH v4] extcon: gpio: Add the support for Device tree bindings

2016-05-30 Thread Chanwoo Choi
On 2016년 05월 28일 00:29, Rob Herring wrote: > On Thu, May 26, 2016 at 05:17:45PM +0530, Venkat Reddy Talla wrote: >> Add the support for Device tree bindings of extcon-gpio driver. >> The extcon-gpio device tree node must include the both 'extcon-id' and >> 'gpios' property. > > I think extcon bind

[PATCHv4 02/48] thermal: core: group thermal_zone DEVICE_ATTR's declarations

2016-05-30 Thread Eduardo Valentin
Simply reorganize the code to have all DEVICE_ATTR's in one point in the file. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions

[PATCHv4 03/48] thermal: core: group device_create_file() calls that are always created

2016-05-30 Thread Eduardo Valentin
Simple code reorganization to group files that are always created when registering a thermal zone. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 24 1 file changed, 12 ins

[PATCHv4 00/48] thermal: reorganizing thermal core

2016-05-30 Thread Eduardo Valentin
Folks, This is V4 of a patch series to improve thermal core. The idea here is to reorganize the code and improve the way we handle sysfs entries. The change in behavior is that now, thermal zones with empty .type will not be allowed to be registered. Also, the way we handle scanf's return code is

[PATCHv4 06/48] thermal: core: move mode attribute to tz->device.groups

2016-05-30 Thread Eduardo Valentin
Moving mode attribute to tz->device.groups requires the implementation of a .is_visible() callback. The condition returned by .is_visible() of the mode attribute group is kept the same, we allow the attribute to be visible only if ops->get_mode() is set by the thermal driver. Cc: Zhang Rui Cc: li

[PATCHv4 07/48] thermal: core: move passive attr to tz->device.groups

2016-05-30 Thread Eduardo Valentin
This patch moves the passive attribute to tz->device.groups. Moving the passive attribute also requires a .is_visible() callback implementation for its attribute group. The logic behind the visibility of passive attribute is kept the same. We only expose the passive attribute if the thermal driver

[PATCHv4 09/48] thermal: core: move power actor code out of sysfs I/F section

2016-05-30 Thread Eduardo Valentin
Simply reorganize code to keep only functions of sysfs interface of thermal zone device together. Therefore, move the power actor code out of the sysfs I/F section. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/th

Re: [PATCH v3 7/7] [wip] virtio-gpu: add page flip support

2016-05-30 Thread Daniel Vetter
On Tue, May 31, 2016 at 8:18 AM, Gerd Hoffmann wrote: >> > https://lists.freedesktop.org/archives/dri-devel/2016-May/108772.html >> >> Hm, smells more like virtio isn't too happy with the default ordering of >> the commit operation. The default is: >> >> - Disable any crtc/encoders that need to be

[PATCHv4 05/48] thermal: core: move emul_temp creation to tz->device.groups

2016-05-30 Thread Eduardo Valentin
emul_temp creation is dependent on a compile time condition. Moving to tz->device.groups. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions

Re: [RFC 12/13] mm, compaction: more reliably increase direct compaction priority

2016-05-30 Thread Joonsoo Kim
On Tue, May 10, 2016 at 09:36:02AM +0200, Vlastimil Babka wrote: > During reclaim/compaction loop, compaction priority can be increased by the > should_compact_retry() function, but the current code is not optimal for > several reasons: > > - priority is only increased when compaction_failed() is

[PATCHv4 11/48] thermal: core: fix style on remove_trip_attrs()

2016-05-30 Thread Eduardo Valentin
Align to parentheses, removing checkpatch warning. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/thermal_core.c b/

[PATCHv4 04/48] thermal: core: use dev.groups to manage always present tz attributes

2016-05-30 Thread Eduardo Valentin
Thermal zones attributes are all being created using device_create_file(). This has the disadvantage of making the code complicated and sometimes we may miss the cleanup of them. This patch starts to move the thermal zone sysfs attributes to the dev.groups, so Linux device core manage them for us.

[PATCH 00/15] thermal: sysfs: add locking

2016-05-30 Thread Eduardo Valentin
Hello, Several thermal sysfs entries are currently being called from userspace without locking. Data and calls to ops are accessed deliberated without any care for locking. This patch series attempts to fix this. Now that sysfs handlers are on the same place it is easier to visualize this issue

[PATCH 01/15] thermal: sysfs: lock tz in type_show

2016-05-30 Thread Eduardo Valentin
Avoid race while accessing tz->type. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_sysfs.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/thermal/thermal_sysfs.c b/driver

[PATCH 03/15] thermal: sysfs: lock tz while on trip_point_type properties

2016-05-30 Thread Eduardo Valentin
Serialized calls to tz.ops in user facing sysfs handler trip_point_type_show() and trip_point_temp_store(). Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_sysfs.c | 2 ++ 1 file changed, 2 insertions(+) di

[PATCH 06/15] thermal: sysfs: lock tz while on passive properties

2016-05-30 Thread Eduardo Valentin
Serialized calls to tz.ops in user facing sysfs handler passive_store() and passive_show(). Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_sysfs.c | 15 ++- 1 file changed, 14 insertions(+), 1 d

[PATCH 12/15] thermal: sysfs: lock cdev while accessing max_state

2016-05-30 Thread Eduardo Valentin
Serialized calls to cdev->ops in user facing sysfs handler thermal_cooling_device_max_state_show(). Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_sysfs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH 08/15] thermal: sysfs: improve locking of emul_temp_store()

2016-05-30 Thread Eduardo Valentin
emul_temp_store locks only for setting temperature, but it must lock also for calls to tz.ops. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_sysfs.c | 9 - 1 file changed, 4 insertions(+), 5 deleti

[PATCH 09/15] thermal: sysfs: lock tz when access sustainable power properties

2016-05-30 Thread Eduardo Valentin
Lock tz when in user facing sysfs handlers to expose sustainable power properties. This includes: sustainable_power_show() sustainable_power_store() Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_sysfs.c |

[PATCH 13/15] thermal: sysfs: lock cdev while accessing cur_state

2016-05-30 Thread Eduardo Valentin
Serialized calls to cdev->ops in user facing sysfs handlers thermal_cooling_device_cur_state_show() and thermal_cooling_device_cur_state_store(). Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_sysfs.c | 4 +

Re: [tip:sched/core] sched/fair: Correct unit of load_above_capacity

2016-05-30 Thread Yuyang Du
On Tue, May 24, 2016 at 04:24:01AM +0800, Yuyang Du wrote: > On Thu, May 19, 2016 at 04:36:38PM +0100, Morten Rasmussen wrote: > > > > And this is exactly you get with this patch :-) load_above_capacity > > (through max_pull) is multiplied by the group capacity to compute that > > actual amount of

[PATCH 14/15] thermal: sysfs: serialize access to instances

2016-05-30 Thread Eduardo Valentin
Because instances are the result of a matching between cdev and tz, we need to lock both in order to access the instance reliably. This patch locks both tz and cdev in user facing sysfs handlers when accessing thermal zone instance. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vge

[PATCH 11/15] thermal: sysfs: lock cdev while accessing type

2016-05-30 Thread Eduardo Valentin
Serialized data access to cdev->type in user facing sysfs handler thermal_cooling_device_type_show(). The existing cdev lock is used. Updating comment on the lock definition. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers

[PATCH 15/15] thermal: sysfs: add comments describing locking strategy

2016-05-30 Thread Eduardo Valentin
The locking strategy of sysfs entries in thermal subsystem is to hold a lock to serialize access to struct thermal_zone_device and struct thermal_cooling_device data. Besides, the respective locks will also be held if calls to ops need to be done to fetch data or to trigger driver actions. The exc

[PATCH 02/15] thermal: sysfs: lock tz while on access to mode properties

2016-05-30 Thread Eduardo Valentin
Serialized calls to tz.ops in user facing sysfs handler mode_show() and mode_store(). Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_sysfs.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletion

[PATCH 04/15] thermal: sysfs: lock tz while on trip_point_temp properties

2016-05-30 Thread Eduardo Valentin
Serialized calls to tz.ops in user facing sysfs handler trip_point_temp_show() and trip_point_temp_store(). Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_sysfs.c | 4 1 file changed, 4 insertions(+)

[PATCH 10/15] thermal: sysfs: lock tz when access tzp properties

2016-05-30 Thread Eduardo Valentin
Lock tz when in user facing sysfs handlers to expose tzp properties. This includes changing the macro create_s32_tzp_attr(), which is used in the tzp properties: k_po, k_pu, k_i, k_d, integral_cutoff, slope, offset. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Sign

[PATCH 07/15] thermal: sysfs: lock tz while on policy properties

2016-05-30 Thread Eduardo Valentin
Serialized calls to tz.ops in user facing sysfs handler policy_show(). policy_store() is already locked by the thermal core. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_sysfs.c | 8 +++- 1 file chang

[PATCH 05/15] thermal: sysfs: lock tz while on trip_point_hyst properties

2016-05-30 Thread Eduardo Valentin
Serialized calls to tz.ops in user facing sysfs handler trip_point_hyst_store() and trip_point_hyst_show(). Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_sysfs.c | 4 1 file changed, 4 insertions(+)

[PATCHv4 08/48] thermal: core: improve power actor documentation

2016-05-30 Thread Eduardo Valentin
Simple improvement on clarity and removal of checkpatch warning in the documentation of power actor kernel doc. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 5 +++-- 1 file changed, 3 insertions(

[PATCH] pinctrl: uniphier: fix .pin_dbg_show() callback

2016-05-30 Thread Masahiro Yamada
Without this, reading the "pins" in the debugfs causes kernel BUG. Fixes: 6e9088920258 ("pinctrl: UniPhier: add UniPhier pinctrl core support") Signed-off-by: Masahiro Yamada --- Hi Linus, I hope this will be applied as a bug-fix patch for Linux 4.7 . drivers/pinctrl/uniphier/pinctrl-uniphier-

[PATCH v2 2/3] sched/fair: Skip detach and attach new group task

2016-05-30 Thread Yuyang Du
Vincent reported that the first task to a new task group's cfs_rq will be attached in attach_task_cfs_rq() and once more when it is enqueued (see https://lkml.org/lkml/2016/5/25/388). Actually, it is worse, attach_task_cfs_rq() is invoked for new task even way before the new task is initiated in i

[PATCH v2 3/3] sched/fair: Add inline to detach_entity_load_evg()

2016-05-30 Thread Yuyang Du
detach_entity_load_evg() is only called by detach_task_cfs_rq(), so explicitly add inline attribute to it. Signed-off-by: Yuyang Du --- kernel/sched/fair.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 5b34286..524afcb 1006

[PATCH v2 1/3] sched/fair: Clean up attach_entity_load_avg()

2016-05-30 Thread Yuyang Du
attach_entity_load_avg() is called (indirectly) from: - switched_to_fair(): switch between classes to fair - task_move_group_fair(): move between task groups - enqueue_entity_load_avg(): enqueue entity Only in switched_to_fair() is it possible that the task's last_update_time is not 0 and ther

[PATCH v2 0/3] sched/fair: Skip attach and detach for new group task in task_move_group_fair()

2016-05-30 Thread Yuyang Du
Hi Peter, Vincent reported this problem, which is there for a while. The first patch is cleanup as well as paving the way to the fix. Regarding the fix in the second patch, it seems the vruntime part in the detach and attach does not make sense for new task too, so I also avoided it. Thanks, Yu

[PATCHv4 17/48] thermal: core: split policy_store

2016-05-30 Thread Eduardo Valentin
Similarly to passive_store, policy_store now is split between thermal core data structure handling and sysfs handling. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 37

[PATCHv4 15/48] thermal: core: remove unnecessary device_remove() calls

2016-05-30 Thread Eduardo Valentin
Given that cdevs sysfs properties are already registered using the dev.groups, there is no need to explicitly call device_remove() for each property. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c |

[PATCHv4 16/48] thermal: core: split passive_store

2016-05-30 Thread Eduardo Valentin
Split passive_store between sysfs handling and thermal core internal data handling. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 62 -- drivers/thermal/the

Re: [PATCH] Add virtio gpu driver.

2016-05-30 Thread Gerd Hoffmann
Hi, > > Why attach the hotspot to the plane? Wouldn't it make more sense to > > make it a framebuffer property? > > We don't have properties on the framebuffer. I guess you /could/ just add > it internally to struct drm_framebuffer, and not bother exposing to > userspace. I guess that would be

[PATCHv4 18/48] thermal: core: split available_policies_show()

2016-05-30 Thread Eduardo Valentin
This patch creates a helper to build a list of available governors. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 35 --- drivers/thermal/thermal_core.h | 1 + 2 f

[PATCHv4 19/48] thermal: core: move to_thermal_zone() macro to header file

2016-05-30 Thread Eduardo Valentin
Simply making this macro available to other thermal core files. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 3 --- drivers/thermal/thermal_core.h | 3 +++ 2 files changed, 3 insertions(+), 3 del

[PATCHv4 12/48] thermal: core: move the trip attrs to the tz sysfs I/F section

2016-05-30 Thread Eduardo Valentin
Code reorganization to keep all the sysfs I/F of a thermal zone in the same section. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 216 - 1 file changed, 10

Re: pxa_defconfig runtime failures due to 'ARM: pxa: activate pinctrl for device-tree machines'

2016-05-30 Thread Robert Jarzmik
Guenter Roeck writes: > On 05/28/2016 01:24 AM, Robert Jarzmik wrote: >> Guenter Roeck writes: >> >>> Hi, >> I'd rather say that pxa_defconfig doesn't work anymore on any legacy system. >> Its first purpose was to ensure compilation coverage of all legacy pxa >> systems. >> Its second one was t

[PATCHv4 21/48] thermal: core: match parenthesis on code alignment

2016-05-30 Thread Eduardo Valentin
Cosmetic change in the sysfs handling functions, as recommended by checkpatch.pl. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-)

[PATCHv4 22/48] thermal: core: move thermal_zone sysfs to thermal_sysfs.c

2016-05-30 Thread Eduardo Valentin
This is a code reorganization, simply to concentrate the code handling sysfs in a specific file: thermal_sysfs.c. Right now, moving only the sysfs entries of thermal_zone_device. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- dri

[PATCHv4 25/48] thermal: core: remove a couple of style issues on helpers

2016-05-30 Thread Eduardo Valentin
Reorganizing the code of helper functions to improve readability and style, as recommended by checkpatch.pl. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 9 + 1 file changed, 5 insertions

[PATCHv4 28/48] thermal: core: move idr handling to device management section

2016-05-30 Thread Eduardo Valentin
Given that idr is only used to get id for thermal devices (zones and cooling), makes sense to move the code closer. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 48 +--

[PATCHv4 29/48] thermal: core: small style fix on __unbind() helper

2016-05-30 Thread Eduardo Valentin
Simply aligning to parenthesis. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/the

fou: dead build rule for fou6.o

2016-05-30 Thread Valentin Rothberg
Hi Arnd, your commit fabb13db448e ("fou: add Kconfig options for IPv6 support") has shown up in today's linux-next. ./scripts/checkkconfigsymbols.py warned because of the following statement in net/ipv6/Makefile: +obj-$(CONFIG_NET_FOU_IPV6_TUNNELS) += fou6.o The referenced Kconfig option does no

Re: [PATCH 0/2] Rework clk/vt8500 wm8650_find_pll_bits()

2016-05-30 Thread Roman Volkov
В Tue, 24 May 2016 23:07:51 +0300 Roman Volkov пишет: > From: Roman Volkov > > Hi Arnd and others, > > This patch finally removes the warnings from GCC about possibly > uninitialized variables 'best_div2', 'best_div1', and 'best_mul'. > Also one of the functions is reworked, so that the algori

[PATCHv4 32/48] thermal: core: move bind_tz() to where it is used

2016-05-30 Thread Eduardo Valentin
Moving the helper to closer where it is used. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 80 +- 1 file changed, 40 insertions(+), 40 deletions(-) diff -

[PATCHv4 31/48] thermal: core: move bind_cdev() to where it is used

2016-05-30 Thread Eduardo Valentin
Moving the helper to closer where it is used. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 76 +- 1 file changed, 38 insertions(+), 38 deletions(-) diff -

[PATCHv4 26/48] thermal: core: introduce thermal_helpers.c

2016-05-30 Thread Eduardo Valentin
Here we have a simple code organization. This patch moves functions that do not need to handle thermal core internal data structure to thermal_helpers.c file. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/Makefile

Re: [RFC 03/13] mm, page_alloc: don't retry initial attempt in slowpath

2016-05-30 Thread Joonsoo Kim
On Tue, May 10, 2016 at 09:35:53AM +0200, Vlastimil Babka wrote: > After __alloc_pages_slowpath() sets up new alloc_flags and wakes up kswapd, it > first tries get_page_from_freelist() with the new alloc_flags, as it may > succeed e.g. due to using min watermark instead of low watermark. This attem

[PATCHv4 36/48] thermal: core: move notify to the zone update section

2016-05-30 Thread Eduardo Valentin
moving the helper function to closer to similar functions. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-)

[PATCHv4 40/48] thermal: sysfs: remove symbols of emul_temp when config is disabled

2016-05-30 Thread Eduardo Valentin
Remove the following warning: In file included from drivers/thermal/thermal_sysfs.c:19:0: include/linux/device.h:575:26: warning: ‘dev_attr_emul_temp’ defined but not used [-Wunused-variable] struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)

[PATCHv4 35/48] thermal: core: add inline to print_bind_err_msg()

2016-05-30 Thread Eduardo Valentin
Given that this is simple wrapper, adding the inline flag. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/ther

[PATCHv4 41/48] thermal: core: remove FSF address in the GPL notice

2016-05-30 Thread Eduardo Valentin
Simplify the GPL notice by removing the FSF address. No need to track FSF location in this file. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 13 - 1 file changed, 13 deletions(-) di

[PATCHv4 39/48] thermal: core: add a comment describing the device management section

2016-05-30 Thread Eduardo Valentin
comment describing the section with function to handle registration, unregistration, binding, and unbinding of thermal devices. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 11 +-- 1 file

[PATCHv4 42/48] thermal: core: small style fix when checking for __find_governor()

2016-05-30 Thread Eduardo Valentin
Remove style issue: CHECK: Comparison to NULL could be written "!__find_governor" + if (__find_governor(governor->name) == NULL) { Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 4 ++-- 1 fil

[PATCHv4 44/48] thermal: core: remove void function return statements

2016-05-30 Thread Eduardo Valentin
Simply removing useless returns of void functions. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal

[PATCHv4 38/48] thermal: core: add a comment describing the power actor section

2016-05-30 Thread Eduardo Valentin
Simply marking the power actor section and adding a comment describing it. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/thermal/th

[PATCHv4 45/48] thermal: core: remove style warnings and checks

2016-05-30 Thread Eduardo Valentin
Removing several style issues in thermal code code. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers

[PATCHv4 46/48] thermal: core: improve kerneldoc entry of thermal_cooling_device_unregister

2016-05-30 Thread Eduardo Valentin
Improve description and keep 80 columns limit. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/thermal/thermal_core.c

[PATCHv4 47/48] thermal: core: use kzalloc(sizeof(*ptr),...)

2016-05-30 Thread Eduardo Valentin
As a safety check, this patch changes thermal core to check for pointer content size, instead of type size, while allocating memory. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 7 +++ 1 file

[PATCHv4 37/48] thermal: core: add a comment describing the main update loop

2016-05-30 Thread Eduardo Valentin
Simply marking the main update loop section and adding a comment describing it. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers

[PATCHv4 30/48] thermal: core: move __unbind() helper to where it is used

2016-05-30 Thread Eduardo Valentin
Simply moving the helper to closer where it is actually used. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a

[PATCHv4 33/48] thermal: core: fix couple of style issues on __bind() helper

2016-05-30 Thread Eduardo Valentin
Removing style issues on __bind() and its helpers. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/thermal/therma

[PATCHv4 34/48] thermal: core: move __bind() to where it is used

2016-05-30 Thread Eduardo Valentin
Moving the helper to closer where it is used. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 66 +- 1 file changed, 33 insertions(+), 33 deletions(-) diff -

[PATCHv4 48/48] thermal: sysfs: use kcalloc() instead of kzalloc()

2016-05-30 Thread Eduardo Valentin
Simplify size computation by using kcalloc() for allocating memory for arrays. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_sysfs.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) dif

[PATCHv4 14/48] thermal: core: move trips attributes to tz->device.groups

2016-05-30 Thread Eduardo Valentin
Finally, move the last thermal zone sysfs attributes to tz->device.groups: trips attributes. This requires adding a attribute_group to thermal_zone_device, creating it dynamically, and then setting all trips attributes in it. The trips attribute is then added to the tz->device.groups. As the remov

Re: [RFC 02/13] mm, page_alloc: set alloc_flags only once in slowpath

2016-05-30 Thread Joonsoo Kim
On Tue, May 10, 2016 at 02:30:11PM +0200, Vlastimil Babka wrote: > On 05/10/2016 01:28 PM, Tetsuo Handa wrote: > > Vlastimil Babka wrote: > >> In __alloc_pages_slowpath(), alloc_flags doesn't change after it's > >> initialized, > >> so move the initialization above the retry: label. Also make the

[PATCHv4 27/48] thermal: core: group functions related to governor handling

2016-05-30 Thread Eduardo Valentin
Organize thermal core code to group the functions handling with governor manipulation in one single section. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 153 +

[PATCHv4 20/48] thermal: core: treat correctly the return value of *scanf calls

2016-05-30 Thread Eduardo Valentin
This patch checks the return value of all calls to *scanf. The check is to simply match the number of expect inputs. The current code does not do any recovery in case the number of treated inputs are different than the expected. Therefore, keeping the same behavior. Cc: Zhang Rui Cc: linux...@vg

[PATCHv4 43/48] thermal: core: standardize line breaking alignment

2016-05-30 Thread Eduardo Valentin
Pass through the code to remove check suggested by checkpatch.pl (alignment to parenthesis): CHECK: Alignment should match open parenthesis Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 32 +++

[PATCHv4 24/48] thermal: core: move cooling device sysfs to thermal_sysfs.c

2016-05-30 Thread Eduardo Valentin
This is a code reorganization, simply to concentrate the sysfs handling functions in thermal_sysfs.c. This patch moves the cooling device handling functions. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_

[PATCHv4 23/48] thermal: core: move to_cooling_device macro to header file

2016-05-30 Thread Eduardo Valentin
Make the to_cooling_device() macro available across files in thermal core. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 3 --- drivers/thermal/thermal_core.h | 3 +++ 2 files changed, 3 insertion

[PATCHv4 01/48] thermal: core: prevent zones with no types to be registered

2016-05-30 Thread Eduardo Valentin
There are APIs that rely on tz->type. This patch prevent thermal zones without it to be registered. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 16 1 file changed, 8 insertions(

[PATCHv4 10/48] thermal: core: remove useless empty line

2016-05-30 Thread Eduardo Valentin
Fix style problem on create_trip_attrs(); Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_co

[PATCHv4 13/48] thermal: core: create tz->device.groups dynamically

2016-05-30 Thread Eduardo Valentin
This is a patch to allow adding groups created dynamically. For now we create only the existing group. However, this is a preparation to allow creating trip groups, which are determined only when the number of trips are known at runtime. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel

Re: [PATCH v3 7/7] [wip] virtio-gpu: add page flip support

2016-05-30 Thread Gerd Hoffmann
Hi, > > https://lists.freedesktop.org/archives/dri-devel/2016-May/108772.html > > Hm, smells more like virtio isn't too happy with the default ordering of > the commit operation. The default is: > > - Disable any crtc/encoders that need to be disabled/change. > - Bash new plane setup into hw.

Re: [PATCHv3 00/48] thermal: reorganizing thermal core

2016-05-30 Thread Eduardo Valentin
On Tue, May 31, 2016 at 09:54:08AM +0530, Keerthy wrote: > Hi Eduardo, > > On Tuesday 31 May 2016 03:45 AM, Eduardo Valentin wrote: > >Folks, > > > >This is V3 of a patch series to improve thermal core. The idea > >here is to reorganize the code and improve the way we > >handle sysfs entries. > >

Re: shrink_active_list/try_to_release_page bug? (was Re: xfs trace in 4.4.2 / also in 4.3.3 WARNING fs/xfs/xfs_aops.c:1232 xfs_vm_releasepage)

2016-05-30 Thread Stefan Priebe - Profihost AG
Hi Dave, Am 31.05.2016 um 08:07 schrieb Dave Chinner: > On Tue, May 31, 2016 at 12:59:04PM +0900, Minchan Kim wrote: >> On Tue, May 31, 2016 at 12:55:09PM +1000, Dave Chinner wrote: >>> On Tue, May 31, 2016 at 10:07:24AM +0900, Minchan Kim wrote: On Tue, May 31, 2016 at 08:36:57AM +1000, Dave

Re: [PATCH] f2fs: fix to redirty page if fail to gc data page

2016-05-30 Thread Chao Yu
Hi Jaegeuk, On 2016/5/30 10:37, Jaegeuk Kim wrote: > Hi Chao, > > On Sat, May 21, 2016 at 01:19:11PM +0800, Chao Yu wrote: >> From: Chao Yu >> >> If we fail to move data page during foreground GC, we should give another >> chance to writeback that page which was set dirty previously by writer. >

[PATCH 1/3] watchdog: skip min and max timeout validity check when max_hw_heartbeat_ms is defined

2016-05-30 Thread fu . wei
From: Pratyush Anand When max_hw_heartbeat_ms has a none zero value, max_timeout is not used. So it's value can be 0. In such case if a driver uses min_timeout functionality, then check will always fail. This patch fixes above issue. Signed-off-by: Pratyush Anand Signed-off-by: Fu Wei --- dr

[PATCH 3/3] sbsa_gwdt: Set WDOG_HW_RUNNING, when watchdog is already running.

2016-05-30 Thread fu . wei
From: Pratyush Anand This patch uses the new flag WDOG_HW_RUNNING in driver. According to the definition of this flag, it should be set, if watchdog is running after booting, before it's opened. Signed-off-by: Pratyush Anand Signed-off-by: Fu Wei --- drivers/watchdog/sbsa_gwdt.c | 2 ++ 1 fil

[PATCH 0/3] watchdog, sbsa_gwdt: Update SBSA watchdog with the new infrastructure of watchdog.

2016-05-30 Thread fu . wei
From: Fu Wei This patchset: (1)Try to fix an issue about min and max timeout validity check: when max_hw_heartbeat_ms is defined, this check should be skipped. (2)Use max_hw_heartbeat_ms instead of max_timeout in SBSA watchdog. (3)Set WDOG_HW_RUNNING, when SBSA watchdog is alrea

[PATCH 2/3] sbsa_gwdt: Use max_hw_heartbeat_ms instead of max_timeout

2016-05-30 Thread fu . wei
From: Pratyush Anand Using max_hw_heartbeat_ms instead of max_timeout gives the flexibility to achieve higher user "timeout". Therefore, use this new infrastructure. Signed-off-by: Pratyush Anand Signed-off-by: Fu Wei --- drivers/watchdog/sbsa_gwdt.c | 4 ++-- 1 file changed, 2 insertions(+),

Re: shrink_active_list/try_to_release_page bug? (was Re: xfs trace in 4.4.2 / also in 4.3.3 WARNING fs/xfs/xfs_aops.c:1232 xfs_vm_releasepage)

2016-05-30 Thread Dave Chinner
On Tue, May 31, 2016 at 12:59:04PM +0900, Minchan Kim wrote: > On Tue, May 31, 2016 at 12:55:09PM +1000, Dave Chinner wrote: > > On Tue, May 31, 2016 at 10:07:24AM +0900, Minchan Kim wrote: > > > On Tue, May 31, 2016 at 08:36:57AM +1000, Dave Chinner wrote: > > > > But this is a dirty page, which m

Re: [PATCH 2/3] gpio: max77620: Implement gpio_get_direction callback

2016-05-30 Thread Laxman Dewangan
On Monday 30 May 2016 08:33 PM, Linus Walleij wrote: On Tue, May 24, 2016 at 3:13 PM, Laxman Dewangan wrote: Implement gpio_get_direction() callback for MAX77620 GPIO. This is useful for debugfs and the userspace ABI. Signed-off-by: Laxman Dewangan #include +#include No. This is a sign

[PATCH] net/wireless: Fix 'multiple blank lines' check

2016-05-30 Thread Kirtika Ruchandani
This patch fixes the checkpatch.pl check "Please don't use multiple blank lines" for all files in net/wireless, except nl80211.c which is covered in a separated patch. Signed-off-by: Kirtika Ruchandani --- net/wireless/ap.c | 1 - net/wireless/chan.c| 3 --- net/wireless/core.h

[PATCH v2,5/5] arm64: dts: mediatek: add USB3 DRD driver

2016-05-30 Thread Chunfeng Yun
USB3 DRD driver is added for MT8173-EVB, and xHCI driver becomes its subnode Signed-off-by: Chunfeng Yun --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 46 +-- arch/arm64/boot/dts/mediatek/mt8173.dtsi| 28 2 files changed, 65 insertions(+), 9 d

  1   2   3   4   5   6   7   8   9   10   >