[for-next][PATCH 1/2] tracing: Remove {start,stop}_branch_trace

2015-10-23 Thread Steven Rostedt
From: Dmitry Safonov <0x7f454...@gmail.com> Both start_branch_trace() and stop_branch_trace() are used in only one location, and are both static. As they are small functions there is no need to keep them separated out. Link:

[for-next][PATCH 2/2] ftrace: Calculate the correct dyn_ftrace number to report to the userspace

2015-10-23 Thread Steven Rostedt
From: Minfei Huang Now, ftrace only calculate the dyn_ftrace number in the adding breakpoint loop, not in adding update and finish update loop. Calculate the correct dyn_ftrace, once ftrace reports the failure message to the userspace. Link:

Re: [PATCH 09/11] net: ipv6: hlen could be set as size_t

2015-10-23 Thread kbuild test robot
Hi LABBE, [auto build test WARNING on net/master -- if it's inappropriate base, please suggest rules for selecting the more suitable base] url: https://github.com/0day-ci/linux/commits/LABBE-Corentin/net-change-len-parameter-type-for-memcpy_-to-from-_msg/20151023-201642 config: xtensa

Re: [PATCH v2 00/12] KVM: x86: add support for VMX TSC scaling

2015-10-23 Thread Haozhong Zhang
On Fri, Oct 23, 2015 at 12:06:50PM +0200, Joerg Roedel wrote: > On Tue, Oct 20, 2015 at 03:39:00PM +0800, Haozhong Zhang wrote: > > VMX TSC scaling shares some common logics with SVM TSC ratio which > > is already supported by KVM. Patch 1 ~ 8 move those common logics from > > SVM code to the

Re: [Y2038] [PATCH V2] hil_mlc: convert timeval to ktime_t

2015-10-23 Thread Pingbo Wen
> 在 2015年10月23日,17:55,Arnd Bergmann 写道: > > On Friday 23 October 2015 17:24:59 WEN Pingbo wrote: >> Using struct timeval will cause time overflow in 2038, replacing it with >> ktime_t. And we don't need to handle sec and nsec separately. >> > > This part looks good now, but as I commented in

Re: [PATCH v5 2/2] lib/test-string_helpers.c: add string_get_size() tests

2015-10-23 Thread Vitaly Kuznetsov
Rasmus Villemoes writes: > On Thu, Sep 17 2015, Vitaly Kuznetsov wrote: > >> + >> +static __init void test_string_get_size(void) >> +{ >> +test_string_get_size_one(16384, 512, STRING_UNITS_2, "8.00 MiB"); >> +test_string_get_size_one(8192, 4096, STRING_UNITS_10, "32.7 MB"); > > This is

Re: [PATCH 08/11] net: bluetooth: change the len parameter of sco_send_frame() to size_t

2015-10-23 Thread kbuild test robot
Hi LABBE, [auto build test WARNING on net/master -- if it's inappropriate base, please suggest rules for selecting the more suitable base] url: https://github.com/0day-ci/linux/commits/LABBE-Corentin/net-change-len-parameter-type-for-memcpy_-to-from-_msg/20151023-201642 config: sparc64

[PATCH v9 1/5] configfs: Allow dynamic group creation

2015-10-23 Thread Daniel Baluta
We don't want to hardcode default groups at subsystem creation time. We export: * configfs_register_group * configfs_unregister_group to allow drivers to programatically create/destroy groups later, after module init time. This is needed for IIO configfs support. Suggested-by:

[PATCH v9 4/5] iio: trigger: Introduce IIO hrtimer based trigger

2015-10-23 Thread Daniel Baluta
This patch registers a new IIO software trigger interrupt source based on high resolution timers. Notice that if configfs is enabled we create sampling_frequency attribute allowing users to change hrtimer period (1/sampling_frequency). The IIO hrtimer trigger has a long history, this patch is

[PATCH v9 0/5] Add initial configfs support for IIO

2015-10-23 Thread Daniel Baluta
This patchset introduces IIO software triggers, offers a way of configuring them via configfs and adds the IIO hrtimer based interrupt source to be used with software triggers. The arhitecture is now split in 3 parts, to remove all IIO trigger specific parts from IIO configfs core: (1) IIO

[PATCH v9 2/5] iio: core: Introduce IIO configfs support

2015-10-23 Thread Daniel Baluta
This patch creates the IIO configfs root group. The group will appear under /iio/, usually /config/iio. We introduce configfs support in IIO in order to be able to easily create IIO objects from userspace. The first supported IIO objects are triggers introduced with next patches. Signed-off-by:

[PATCH v9 5/5] iio: Documentation: Add IIO configfs documentation

2015-10-23 Thread Daniel Baluta
Signed-off-by: Daniel Baluta --- Documentation/ABI/testing/configfs-iio | 21 Documentation/iio/iio_configfs.txt | 93 ++ 2 files changed, 114 insertions(+) create mode 100644 Documentation/ABI/testing/configfs-iio create mode 100644

[PATCH v9 3/5] iio: core: Introduce IIO software triggers

2015-10-23 Thread Daniel Baluta
A software trigger associates an IIO device trigger with a software interrupt source (e.g: timer, sysfs). This patch adds the generic infrastructure for handling software triggers. Software interrupts sources are kept in a iio_trigger_types_list and registered separately when the associated

Re: [GIT PULL] On-demand device probing

2015-10-23 Thread Tomeu Vizoso
On 10/22/2015 09:26 PM, Greg Kroah-Hartman wrote: > On Thu, Oct 22, 2015 at 11:53:31AM -0700, Frank Rowand wrote: >> On 10/22/2015 7:44 AM, Greg Kroah-Hartman wrote: >>> >>> >>> On Thu, Oct 22, 2015 at 11:05:11AM +0200, Tomeu Vizoso wrote: But that's moot currently because Greg believes that

Re: [PATCH] mm,vmscan: Use accurate values for zone_reclaimable() checks

2015-10-23 Thread Tetsuo Handa
Michal Hocko wrote: > On Fri 23-10-15 19:36:30, Tejun Heo wrote: > > Hello, Michal. > > > > On Fri, Oct 23, 2015 at 10:33:16AM +0200, Michal Hocko wrote: > > > Ohh, OK I can see wq_worker_sleeping now. I've missed your point in > > > other email, sorry about that. But now I am wondering whether

Re: [PATCH V3] hp_sdc: convert struct timeval to ktime_t

2015-10-23 Thread Pingbo Wen
> 在 2015年10月23日,19:45,Arnd Bergmann 写道: > > On Friday 23 October 2015 19:29:39 WEN Pingbo wrote: >> 1. struct timeval is not y2038 safe, convert it to ktime_t, and there is no >> need to handle sec and usec separately >> >> > > The patch looks good now, but the changelog still needs a tiny

Re: [PATCH cgroup/for-4.4 3/3] cgroup: replace unified-hierarchy.txt with a proper cgroup v2 documentation

2015-10-23 Thread Vivek Goyal
On Fri, Oct 23, 2015 at 10:18:07AM +0900, Tejun Heo wrote: > Hello, > > On Thu, Oct 22, 2015 at 11:36:05PM +0900, Tejun Heo wrote: > > It works with ext2 and 4 and btrfs. Will document it. Thanks. > > Updated to include all writeback information from > blkio-controller.txt. > Thanks Tejun.

[PATCH 02/11] net: llc: fix a setting of error value to size_t

2015-10-23 Thread LABBE Corentin
The variable copied is a size_t, so setting a negative value to it is invalid. The patch add an "err" variable for getting the error code. Signed-off-by: LABBE Corentin --- net/llc/af_llc.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git

Re: [PATCH v2 1/4] KVM: X86: Add arrays to save/restore LBR MSRs

2015-10-23 Thread kbuild test robot
Hi Jian, [auto build test ERROR on v4.3-rc6 -- if it's inappropriate base, please suggest rules for selecting the more suitable base] url: https://github.com/0day-ci/linux/commits/Jian-Zhou/KVM-X86-Add-arrays-to-save-restore-LBR-MSRs/20151023-172601 config: x86_64-lkp (attached as .config

[PATCH 01/11] net: change len parameter type for memcpy_[to|from]_msg

2015-10-23 Thread LABBE Corentin
The len parameter is only used with copy_from_iter() who wait for a size_t and then compared to return type of copy_from_iter() which is size_t also. So len must be set as size_t Signed-off-by: LABBE Corentin --- include/linux/skbuff.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[PATCH 09/11] net: ipv6: hlen could be set as size_t

2015-10-23 Thread LABBE Corentin
The hlen member of raw6_frag_vec is used in operation/function that wait for unsigned value. So it need to be set as size_t. This patch do the same for the hlen variable. Signed-off-by: LABBE Corentin --- net/ipv6/raw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 07/11] net: caif: change chunk from int to size_t

2015-10-23 Thread LABBE Corentin
chunk cannot be negative and is use in operation/function that wait for unsigned value. This patch set it as size_t. The patch do the same for the size variable. Signed-off-by: LABBE Corentin --- net/caif/caif_socket.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH 08/11] net: bluetooth: change the len parameter of sco_send_frame() to size_t

2015-10-23 Thread LABBE Corentin
len is used in operation/function that wait for unsigned value. Furthermore the only one call of sco_send_frame give a size_t as argument. So the parameter need to be set as size_t. Signed-off-by: LABBE Corentin --- net/bluetooth/sco.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 05/11] net: irda: change chunk from int to size_t

2015-10-23 Thread LABBE Corentin
chunk cannot be negative and is use in operation/function that wait for unsigned value. This patch set it as size_t. Signed-off-by: LABBE Corentin --- net/irda/af_irda.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/irda/af_irda.c b/net/irda/af_irda.c index

[PATCH 04/11] net: packet: change vnet_hdr_len from int to size_t

2015-10-23 Thread LABBE Corentin
vnet_hdr_len cannot be negative and is use in operation/function that wait for unsigned value. This patch set vnet_hdr_len as size_t. Signed-off-by: LABBE Corentin --- net/packet/af_packet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/packet/af_packet.c

[PATCH 06/11] net: ipv6: set the length parameter of rawv6_send_hdrinc() to size_t

2015-10-23 Thread LABBE Corentin
length is used in operation/function that wait for unsigned value. Furthermore the only one call of rawv6_send_hdrinc() give a size_t as length arguments. So the parameter need to be set as size_t. Signed-off-by: LABBE Corentin --- net/ipv6/raw.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 11/11] crypto: algif: Change some variable to size_t

2015-10-23 Thread LABBE Corentin
Some variable are set as int but store only positive values. Furthermore there are used in operation/function that wait for unsigned value. This patch set them as size_t. Signed-off-by: LABBE Corentin --- crypto/algif_aead.c | 6 +++--- crypto/algif_skcipher.c | 10 +- 2 files

[PATCH 10/11] net: ipv4: hlen could be set as size_t

2015-10-23 Thread LABBE Corentin
The hlen member of raw_frag_vec is used in operation/function that wait for unsigned value. So it need to be set as size_t. Signed-off-by: LABBE Corentin --- net/ipv4/raw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c index 561cd4b..a00aaed

[PATCH 03/11] net: llc: change copied to size_t in llc_ui_sendmsg

2015-10-23 Thread LABBE Corentin
The variable copied in llc_ui_sendmsg() cannot be negative and is used in functions that wait for unsigned value, so set it as size_t (like it is in llc_ui_recvmsg()) Signed-off-by: LABBE Corentin --- net/llc/af_llc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[no subject]

2015-10-23 Thread LABBE Corentin
Hello This patch series was begun by my finding that memcpy_[to|from]_msg have a parameter len which is an int but used as size_t in whole functions. Without blindly changing the parameter to size_t, I have tried to see if anywhere in linux source code, someone give a negative argument with the

Re: [PATCH 2/3] devicetree: add binding for Aurora VLSI NB8800 Ethernet controller

2015-10-23 Thread Marc Gonzalez
On 22/10/2015 16:02, Mans Rullgard wrote: > This adds a binding for the Aurora VLSI NB8800 Ethernet controller > using the "aurora,nb8800" compatible string. When used in Sigma > Designs chips a few additional control registers are available. > This variant is indicated by the

Re: [PATCH 2/2] Staging: lustre: lnet: lib-move return of an errno should typically be negative (ie: return -EAGAIN)

2015-10-23 Thread Nilesh Kokane
On Fri, Oct 23, 2015 at 5:10 PM, Dilger, Andreas wrote: > On 2015/10/22, 22:30, "Nilesh Kokane" wrote: >>Fixed- Return of an errno should typically be negative (ie: return >>-EAGAIN) > > Nak. Please do not change these function return values. They are > converted as necessary by the callers

Re: Make vmstat deferrable again (was Re: [PATCH] mm,vmscan: Use accurate values for zone_reclaimable() checks)

2015-10-23 Thread Sergey Senozhatsky
On (10/23/15 06:43), Christoph Lameter wrote: > Is this ok? kernel/sched/loadavg.c: In function ‘calc_load_enter_idle’: kernel/sched/loadavg.c:195:2: error: implicit declaration of function ‘quiet_vmstat’ [-Werror=implicit-function-declaration] quiet_vmstat(); ^ > Subject: Fix vmstat:

Re: [PATCH 1/2] mmc: dw_mmc: add hw_reset support

2015-10-23 Thread Jaehoon Chung
Hi, Shawn. On 10/22/2015 03:19 PM, Shawn Lin wrote: > This patch implement hw_reset function for DesignWare > MMC controller. By adding this feature, mmc blk can > do some basic recovery if emmc device cannot work any > more for unknown reasons. Are there any other issue before applied this

Re: [PATCH v3 net-next] bpf: fix bpf_perf_event_read() helper

2015-10-23 Thread Peter Zijlstra
On Thu, Oct 22, 2015 at 05:10:14PM -0700, Alexei Starovoitov wrote: > +++ b/kernel/trace/bpf_trace.c > @@ -199,6 +199,11 @@ static u64 bpf_perf_event_read(u64 r1, u64 index, u64 > r3, u64 r4, u64 r5) > if (!event) > return -ENOENT; > > + /* make sure event is local and

[PATCH 2/2] cpuidle: mvebu: disable the bind/unbind attributes and use builtin_platform_driver

2015-10-23 Thread Daniel Lezcano
From: Russell King As the driver doesn't support unbinding, nor does it support arbitary binding of devices, disable the bind/unbind attributes for this driver. Also, as the driver has no remove function, it can never be modular, so use builtin_platform_driver() to avoid the module exit

[PATCH 1/2] cpuidle: mvebu: clean up multiple platform drivers

2015-10-23 Thread Daniel Lezcano
From: Russell King There's no need to use multiple platform drivers, especially when we want to do something different in the probe, but we still use a common probe function. We can use the platform ID system to only register one platform driver, but have it match several devices, and give us

[PULL] cpuidle for 4.4

2015-10-23 Thread Daniel Lezcano
Hi Rafael, this pull request contains a couple of changes from Russel King. - Disable bind/unbind attribute and use builtin_platform_driver for mvebu (Russell King) - Clean up the code by removing the multiple platform drivers and use the platform ID instead (Russell King) Thanks !

Re: [PATCH v8 00/14] support "task_isolation" mode for nohz_full

2015-10-23 Thread Theodore Ts'o
On Fri, Oct 23, 2015 at 11:04:59AM +0200, Peter Zijlstra wrote: > > If you think this is actually the wrong thing, is it worth trying > > to fix the git docs to deprecate this option? > > As said in the other email; git has different standards than lkml. By > now we're just one of many many users

Re: [PATCH 05/11] dt-binding: Add ngpios property to GPIO controller node

2015-10-23 Thread Rob Herring
On Fri, Oct 23, 2015 at 4:08 AM, Laurent Pinchart wrote: > On Thursday 22 October 2015 18:41:05 Rob Herring wrote: >> On Thu, Oct 22, 2015 at 1:52 PM, Ray Jui wrote: >> > On 10/22/2015 11:43 AM, Rob Herring wrote: >> >> On Mon, Oct 19, 2015 at 12:43 AM, Pramod Kumar wrote: >> >>> Add ngpios

Re: [PATCH v3 2/4] KVM: use simple waitqueue for vcpu->wq

2015-10-23 Thread Daniel Wagner
Hi Paul, On 10/21/2015 01:13 PM, Peter Zijlstra wrote: > On Wed, Oct 21, 2015 at 08:24:11PM +1100, Paul Mackerras wrote: >> On Tue, Oct 20, 2015 at 04:00:31PM +0200, Peter Zijlstra wrote: >>> >>> Should we not take this opportunity to get rid of these open-coded wait >>> loops? >>> >>> >>> Does

Re: [PATCH v2 1/2] i2c: uniphier: add UniPhier FIFO-less I2C driver

2015-10-23 Thread Wolfram Sang
On Fri, Oct 23, 2015 at 07:51:59PM +0900, Masahiro Yamada wrote: > Add support for on-chip I2C controller used on old UniPhier SoCs > such as PH1-LD4, PH1-sLD8, etc. This adapter is so simple that > it has no FIFO in it. > > Signed-off-by: Masahiro Yamada Applied to for-next, thanks!

Re: [PATCH v2 2/2] i2c: uniphier_f: add UniPhier FIFO-builtin I2C driver

2015-10-23 Thread Wolfram Sang
On Fri, Oct 23, 2015 at 07:52:00PM +0900, Masahiro Yamada wrote: > Add support for on-chip I2C controller used on newer UniPhier SoCs > such as PH1-Pro4, PH1-Pro5, etc. This adapter is equipped with > 8-depth TX/RX FIFOs. > > Signed-off-by: Masahiro Yamada Applied to for-next, thanks!

[PATCH] of/fdt: fix error checking for earlycon address

2015-10-23 Thread Masahiro Yamada
fdt_translate_address() returns OF_BAD_ADDR on error. It is defined as a u64 value, so the variable "addr" should be defined as u64 as well. Fixes: fb11ffe74c79 ("of/fdt: add FDT serial scanning for earlycon") Signed-off-by: Masahiro Yamada --- drivers/of/fdt.c | 5 +++-- 1 file changed, 3

[GIT PULL] x86 fixes

2015-10-23 Thread Ingo Molnar
Linus, Please pull the latest x86-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-for-linus # HEAD: f7d27c35ddff7c100d7a98db499ac0040149ac05 x86/mm, kasan: Silence KASAN warnings in get_wchan() Misc fixes: two KASAN fixes, two EFI

Re: [PATCH V3] hp_sdc: convert struct timeval to ktime_t

2015-10-23 Thread Arnd Bergmann
On Friday 23 October 2015 19:29:39 WEN Pingbo wrote: > 1. struct timeval is not y2038 safe, convert it to ktime_t, and there is no > need to handle sec and usec separately > > 2. hp_sdc.rtv is only used for time diff, monotonic time is better here > > Signed-off-by: WEN Pingbo > --- > >

Make vmstat deferrable again (was Re: [PATCH] mm,vmscan: Use accurate values for zone_reclaimable() checks)

2015-10-23 Thread Christoph Lameter
On Fri, 23 Oct 2015, Michal Hocko wrote: > On Thu 22-10-15 10:33:20, Christoph Lameter wrote: > > Ok that also makes me rethink commit > > ba4877b9ca51f80b5d30f304a46762f0509e1635 which seems to be a similar fix > > this time related to idle mode not updating the counters. > > > > Could we fix

[PATCH] sched/deadline: fix typo

2015-10-23 Thread Vincent Guittot
Fix a typo in the code comment. Signed-off-by: Vincent Guittot --- kernel/sched/deadline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index 142df26..0688a20 100644 --- a/kernel/sched/deadline.c +++

Re: [PATCH 2/2] Staging: lustre: lnet: lib-move return of an errno should typically be negative (ie: return -EAGAIN)

2015-10-23 Thread Dilger, Andreas
On 2015/10/22, 22:30, "Nilesh Kokane" wrote: >Fixed- Return of an errno should typically be negative (ie: return >-EAGAIN) Nak. Please do not change these function return values. They are converted as necessary by the callers before returning to userspace, but allow the code to distinguish

[GIT PULL] scheduler fixes

2015-10-23 Thread Ingo Molnar
Linus, Please pull the latest sched-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-urgent-for-linus # HEAD: 0aaafaabfcba8aa991913cd3280a5dbf7f111a2a sched/core: Add missing lockdep_unpin() annotations Misc fixes all around the map: an

Re: [PATCH] soc: qcom: Introduce WCNSS_CTRL SMD client

2015-10-23 Thread yfw
Hi Bjorn, On 2015/10/22 21:50, Bjorn Andersson wrote: On Thu 22 Oct 03:25 PDT 2015, yfw wrote: Hi Bjorn, On 2015/9/22 1:52, Bjorn Andersson wrote: [..] I have a question: Do you have plan to add the nob to trigger wcnss firmware downloading which is also common for wifi and BT? In caf

Re: [PATCH 2/8] mm: memcontrol: export root_mem_cgroup

2015-10-23 Thread Michal Hocko
On Thu 22-10-15 00:21:30, Johannes Weiner wrote: > A later patch will need this symbol in files other than memcontrol.c, > so export it now and replace mem_cgroup_root_css at the same time. > > Signed-off-by: Johannes Weiner Acked-by: Michal Hocko > --- > include/linux/memcontrol.h | 3 ++- >

Re: [PATCH 1/8] mm: page_counter: let page_counter_try_charge() return bool

2015-10-23 Thread Michal Hocko
On Thu 22-10-15 00:21:29, Johannes Weiner wrote: > page_counter_try_charge() currently returns 0 on success and -ENOMEM > on failure, which is surprising behavior given the function name. > > Make it follow the expected pattern of try_stuff() functions that > return a boolean true to indicate

[PATCH v7 04/17] drm: bridge: analogix/dp: remove duplicate configuration of link rate and link count

2015-10-23 Thread Yakir Yang
link_rate and lane_count already configured in analogix_dp_set_link_train(), so we don't need to config those repeatly after training finished, just remove them out. Beside Display Port 1.2 already support 5.4Gbps link rate, the maximum sets would change from {1.62Gbps, 2.7Gbps} to {1.62Gbps,

[PATCH v7 03/17] drm: bridge: analogix/dp: fix some obvious code style

2015-10-23 Thread Yakir Yang
Fix some obvious alignment problems, like alignment and line over 80 characters problems, make this easy to be maintained later. Reviewed-by: Krzysztof Kozlowski Tested-by: Javier Martinez Canillas Signed-off-by: Yakir Yang --- Changes in v7: None Changes in v6: None Changes in v5: -

[PATCH v7 05/17] drm: bridge: analogix/dp: dynamic parse sync_pol & interlace & dynamic_range

2015-10-23 Thread Yakir Yang
Both hsync/vsync polarity and interlace mode can be parsed from drm display mode, and dynamic_range and ycbcr_coeff can be judge by the video code. But presumably Exynos still relies on the DT properties, so take good use of mode_fixup() in to achieve the compatibility hacks. Reviewed-by:

[PATCH v7 01/17] drm: exynos: dp: convert to drm bridge mode

2015-10-23 Thread Yakir Yang
In order to move exynos dp code to bridge directory, we need to convert driver drm bridge mode first. As dp driver already have a ptn3460 bridge, so we need to move ptn bridge to the next bridge of dp bridge. Tested-by: Javier Martinez Canillas Signed-off-by: Yakir Yang --- Changes in v7: None

[PATCH V3] hp_sdc: convert struct timeval to ktime_t

2015-10-23 Thread WEN Pingbo
1. struct timeval is not y2038 safe, convert it to ktime_t, and there is no need to handle sec and usec separately 2. hp_sdc.rtv is only used for time diff, monotonic time is better here Signed-off-by: WEN Pingbo --- Version 2: Using ktime_t instead of struct timespec64 Version 3:

[PATCH v4 2/3] thermal: rockchip: support the sleep pinctrl state to avoid glitches in s2r

2015-10-23 Thread Caesar Wang
When we come out of system suspend state (S3) the tsadc will have been reset and back at its default state. While reprogramming the tsadc it's possible that we'll glitch the output and unintentionally cause the "over temperature" GPIO to be asserted. Since the over temperature GPIO is often

[PATCH v4 0/3] fix the TSHUT issue on rockchip thermal

2015-10-23 Thread Caesar Wang
Thank you all for providing inputs and comments on previous versions of this patchset. Especially thanks to the (Doug, Rob). We need the OTP pin is gpio state before resetting the TSADC controller, since the tshut polarity will generate a high signal. Says: The TSHUT temperature is setting

[PATCH v4 1/3] dt-bindings: rockchip-thermal: Add the pinctrl states in this document

2015-10-23 Thread Caesar Wang
The "init" pinctrl is defined we'll set pinctrl to this state before probe and then "default" after probe. Add the "init" and "sleep" pinctrl as the OTP gpio state, since we need switch the pin to gpio state before the TSADC controller is reset. AFAIK, the TSADC controller is reset, the tshut

[PATCH v4 3/3] ARM: dts: rockchip: Add the OTP gpio pinctrl

2015-10-23 Thread Caesar Wang
Add the "init" anf "sleep" pinctrl as the OTP gpio state. We need the OTP pin is gpio state before resetting the TSADC controller, since the tshut polarity will generate a high signal. "init" pinctrl property is defined by Doug's Patch[0]. Patch[0]: https://patchwork.kernel.org/patch/7454311/

[PATCH v7 0/17] Add Analogix Core Display Port Driver

2015-10-23 Thread Yakir Yang
Hi all, The Samsung Exynos eDP controller and Rockchip RK3288 eDP controller share the same IP, so a lot of parts can be re-used. I split the common code into bridge directory, then rk3288 and exynos only need to keep some platform code. Cause I can't find the exact IP name of exynos dp

Re: [PATCH 5/6] drm/vc4: Make sure that planes aren't scaled.

2015-10-23 Thread Daniel Vetter
On Fri, Oct 23, 2015 at 11:32:35AM +0100, Eric Anholt wrote: > We would scan out the memory around them if an upscale was attempted, > and would just scan out incorrectly for downscaling. > > Signed-off-by: Eric Anholt > --- > > It looks like, while modetest only wants to set scaling on overlay

Re: [PATCH v3 05/15] scsi: ufs: increase fDeviceInit query response timeout

2015-10-23 Thread Akinobu Mita
2015-09-02 19:13 GMT+09:00 Yaniv Gardi : > fDeviceInit query response time for some devices is too long that default > query request timeout of 100ms may not be enough. Experiments show that > fDeviceInit response sometimes takes 500ms so to be on safer side this > change sets the timeout to

Re: [PATCH v2 2/2] serial: earlycon: allow to specify uartclk in earlycon kernel-parameter

2015-10-23 Thread Masahiro Yamada
2015-10-23 0:34 GMT+09:00 Rob Herring : > On Tue, Oct 20, 2015 at 8:20 PM, Masahiro Yamada > wrote: >> Hi Peter, >> (+ Rob Herring, Stefan Agner) >> >> 2015-10-20 23:00 GMT+09:00 Peter Hurley : >>> On 10/19/2015 11:36 PM, Masahiro Yamada wrote: The input clock frequency varies from device to

Re: [PATCH] mm,vmscan: Use accurate values for zone_reclaimable() checks

2015-10-23 Thread Michal Hocko
On Fri 23-10-15 19:36:30, Tejun Heo wrote: > Hello, Michal. > > On Fri, Oct 23, 2015 at 10:33:16AM +0200, Michal Hocko wrote: > > Ohh, OK I can see wq_worker_sleeping now. I've missed your point in > > other email, sorry about that. But now I am wondering whether this > > is an intended behavior.

[PATCH 1/2] mtd: nand: automate NAND timings selection

2015-10-23 Thread Boris Brezillon
The NAND framework provides several helpers to query timing modes supported by a NAND chip, but this implies that all NAND controller drivers have to implement the same timings selection dance. Provide a common logic to select the best timings based on ONFI or ->onfi_timing_mode_default

[PATCH 0/2] mtd: nand: automate NAND timings selection

2015-10-23 Thread Boris Brezillon
Hello, This series aims at automating the NAND timings selection which is currently supposed to be done in each NAND controller driver, thus simplifying drivers implementation. Patch 1 also opens the door to DDR NAND support, though setting DDR timings is currently not supported. Note that

[PATCH 2/2] mtd: nand: sunxi: switch from manual to automated timing config

2015-10-23 Thread Boris Brezillon
The NAND framework is now able to select the best NAND timings for us. All we have to do is implement a ->setup_data_interface() function to apply those timings and remove the timing selection code from the sunxi driver. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/sunxi_nand.c | 72

Re: [PATCH 2/3] i2c: uniphier_f: add UniPhier FIFO-builtin I2C driver

2015-10-23 Thread Masahiro Yamada
2015-10-23 6:06 GMT+09:00 Wolfram Sang : > On Thu, Jul 30, 2015 at 05:12:21PM +0900, Masahiro Yamada wrote: >> Add support for on-chip I2C controller used on newer UniPhier SoCs >> such as PH1-Pro4, PH1-Pro5, etc. This adapter is equipped with >> 8-depth TX/RX FIFOs. >> >> Signed-off-by: Masahiro

[PATCH v2 1/2] i2c: uniphier: add UniPhier FIFO-less I2C driver

2015-10-23 Thread Masahiro Yamada
Add support for on-chip I2C controller used on old UniPhier SoCs such as PH1-LD4, PH1-sLD8, etc. This adapter is so simple that it has no FIFO in it. Signed-off-by: Masahiro Yamada --- Changes in v2: - Delete if-block after platform_get_resource() - Add I2C_FUNC_SMBUS_EMUL to functionality

Re: [PATCH 3/3] i2c: uniphier: add bindings for UniPhier I2C controllers

2015-10-23 Thread Masahiro Yamada
2015-10-23 6:00 GMT+09:00 Wolfram Sang : > On Thu, Jul 30, 2015 at 05:12:22PM +0900, Masahiro Yamada wrote: >> Device Tree bindings for two I2C controllers embedded in >> UniPhier SoCs. >> >> Signed-off-by: Masahiro Yamada > > Please split this into two files with filenames matching those of the

[PATCH v2 0/2] i2c: uniphier: add two I2C controller drivers for UniPhier SoC platform

2015-10-23 Thread Masahiro Yamada
This series adds two I2C controller drivers. (they are completely different IPs.) The first one is a very simple FIFO-less I2C controller, which is used on some older UniPhier SoCs. The other one is higher-performance I2C controller with TX/RX FIFO, used on newer UniPhier SoCs. Changes in v2:

Re: [PATCH 1/3] i2c: uniphier: add UniPhier FIFO-less I2C driver

2015-10-23 Thread Masahiro Yamada
Hi Wolfram, Thanks for your review! 2015-10-23 5:59 GMT+09:00 Wolfram Sang : > On Thu, Jul 30, 2015 at 05:12:20PM +0900, Masahiro Yamada wrote: >> Add support for on-chip I2C controller used on old UniPhier SoCs >> such as PH1-LD4, PH1-sLD8, etc.. This adapter is so simple that >> it has no

[PATCH v2 2/2] i2c: uniphier_f: add UniPhier FIFO-builtin I2C driver

2015-10-23 Thread Masahiro Yamada
Add support for on-chip I2C controller used on newer UniPhier SoCs such as PH1-Pro4, PH1-Pro5, etc. This adapter is equipped with 8-depth TX/RX FIFOs. Signed-off-by: Masahiro Yamada --- Changes in v2: - Delete if-block after platform_get_resource() - Add I2C_FUNC_SMBUS_EMUL to

Re: [PATCH v3 1/3] dt-bindings: Consolidate SRAM bindings from all vendors

2015-10-23 Thread Heiko Stübner
Am Freitag, 23. Oktober 2015, 10:39:19 schrieb Krzysztof Kozlowski: > SRAM bindings for various SoCs, using the mmio-sram genalloc > API, are spread over different places - per SoC vendor. Since all of > these are quite similar (they depend on mmio-sram) move them to a common > place. > >

Re: [PATCH v3 2/2] ARM: dts: mediatek: add MT2701 basic support

2015-10-23 Thread Matthias Brugger
On 20/10/15 08:34, Erin Lo wrote: This adds basic chip support for Mediatek 2701. Signed-off-by: Erin Lo --- arch/arm/boot/dts/Makefile| 1 + arch/arm/boot/dts/mt2701-evb.dts | 29 arch/arm/boot/dts/mt2701.dtsi | 146 ++

Re: [PATCH v3 0/2] Add basic support for Mediatek MT2701 SoC

2015-10-23 Thread Matthias Brugger
On 20/10/15 08:34, Erin Lo wrote: MT2701 is a SoC based on 32bit ARMv7 architecture. It contains 4 CA7 cores. MT2701 share many HW IP with MT65xx series. This patchset was tested on MT2701 evaluation board, and boot to shell ok. This series contains document bindings, device tree including

[RFC PATCH] pci: pci_vpd_pci22_size can be static

2015-10-23 Thread kbuild test robot
Signed-off-by: Fengguang Wu --- access.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/access.c b/drivers/pci/access.c index 3a49b14..41d86f6 100644 --- a/drivers/pci/access.c +++ b/drivers/pci/access.c @@ -495,7 +495,7 @@ static int

Re: [PATCH] pci: Update VPD size with correct length

2015-10-23 Thread kbuild test robot
Hi Hannes, [auto build test WARNING on pci/next -- if it's inappropriate base, please suggest rules for selecting the more suitable base] url: https://github.com/0day-ci/linux/commits/Hannes-Reinecke/pci-Update-VPD-size-with-correct-length/20151023-171224 reproduce: # apt-get

[RFC PATCH] perf tools: Don't set inherit bit for system wide evsel

2015-10-23 Thread Wang Nan
Inherit bit is useless for a system wide evsel [1]. Further kernel improvements are giving more constrain [2] on inherit events. This patch set inherit bit to 0 to avoid potential constrains. [1] http://lkml.kernel.org/r/20151022124142.gq17...@twins.programming.kicks-ass.net [2]

Re: [PATCH] mm,vmscan: Use accurate values for zone_reclaimable()checks

2015-10-23 Thread Tejun Heo
On Fri, Oct 23, 2015 at 10:36:12AM +0200, Michal Hocko wrote: > If WQ_MEM_RECLAIM can really guarantee one worker as described in the > documentation then I agree that fixing vmstat is a better fix. But that > doesn't seem to be the case currently. It does. -- tejun -- To unsubscribe from this

Re: [PATCH] mm,vmscan: Use accurate values for zone_reclaimable() checks

2015-10-23 Thread Tejun Heo
Hello, Michal. On Fri, Oct 23, 2015 at 10:33:16AM +0200, Michal Hocko wrote: > Ohh, OK I can see wq_worker_sleeping now. I've missed your point in > other email, sorry about that. But now I am wondering whether this > is an intended behavior. The documentation says: This is. > WQ_MEM_RECLAIM

[PATCH 2/6] drm/vc4: fix platform_no_drv_owner.cocci warnings

2015-10-23 Thread Eric Anholt
From: Julia Lawall drivers/gpu/drm/vc4/vc4_drv.c:248:3-8: No need to set .owner here. The core will do it. Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Signed-off-by: Fengguang Wu Signed-off-by: Julia

VC4 fixes for -next

2015-10-23 Thread Eric Anholt
Merging vc4 to drm-next got a few automatic sparse and coccinelle warning reports generated. The first 3 patches come from the maintainers of those systems (thanks!), and the last 3 are fixes I've come up with in the last few days. -- To unsubscribe from this list: send the line "unsubscribe

[PATCH 4/6] drm/vc4: Fix some failure to track __iomem decorations on pointers.

2015-10-23 Thread Eric Anholt
Caught by the kbuild test robot. Signed-off-by: Eric Anholt --- drivers/gpu/drm/vc4/vc4_crtc.c | 3 ++- drivers/gpu/drm/vc4/vc4_hvs.c | 8 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c b/drivers/gpu/drm/vc4/vc4_crtc.c index

[PATCH 5/6] drm/vc4: Make sure that planes aren't scaled.

2015-10-23 Thread Eric Anholt
We would scan out the memory around them if an upscale was attempted, and would just scan out incorrectly for downscaling. Signed-off-by: Eric Anholt --- It looks like, while modetest only wants to set scaling on overlay planes, one could do so on our primary/cursor planes if the fd was in

[PATCH 1/6] drm/vc4: vc4_plane_duplicate_state() can be static

2015-10-23 Thread Eric Anholt
From: kbuild test robot Signed-off-by: Fengguang Wu Signed-off-by: Eric Anholt --- drivers/gpu/drm/vc4/vc4_plane.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_plane.c b/drivers/gpu/drm/vc4/vc4_plane.c index cdd8b10..2db5092 100644 ---

[PATCH 6/6] drm/vc4: Add support for more a few more RGB display plane formats.

2015-10-23 Thread Eric Anholt
These were all touch-tested with modetest. Signed-off-by: Eric Anholt --- drivers/gpu/drm/vc4/vc4_plane.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/gpu/drm/vc4/vc4_plane.c b/drivers/gpu/drm/vc4/vc4_plane.c index 887f3ca..b31dfce 100644 ---

Re: [PATCH 2/2] efi: Fix warning of int-to-pointer-cast on x86 32-bit builds

2015-10-23 Thread Ingo Molnar
* Ingo Molnar wrote: > > * Ingo Molnar wrote: > > > > > * Ard Biesheuvel wrote: > > > > > From: Taku Izumi > > > > > > Commit 0f96a99dab36 ("efi: Add "efi_fake_mem" boot option") > > > introduces the following warning message: > > > > > > drivers/firmware/efi/fake_mem.c:186:20:

Re: [PATCH v2 net-next] xfrm: Fix unaligned access to stats in copy_to_user_state()

2015-10-23 Thread Steffen Klassert
On Wed, Oct 21, 2015 at 11:48:25AM -0400, Sowmini Varadhan wrote: > > On sparc, deleting established SAs (e.g., by restarting ipsec) > results in unaligned access messages via xfrm_del_sa -> > km_state_notify -> xfrm_send_state_notify(). > > Even though struct xfrm_usersa_info is aligned on

[PATCH 3/6] drm/vc4: fix itnull.cocci warnings

2015-10-23 Thread Eric Anholt
From: Julia Lawall Connector cannot be null because it is a list entry, ie accessed at an offset from the positions of the list structure pointers themselves. Generated by: scripts/coccinelle/iterators/itnull.cocci Signed-off-by: Fengguang Wu Signed-off-by: Julia Lawall Signed-off-by: Eric

Re: Generic DT binding for IPIs

2015-10-23 Thread Qais Yousef
On 10/22/2015 02:43 PM, Rob Herring wrote: On Wed, Oct 14, 2015 at 5:18 AM, Qais Yousef wrote: Hi, This is an attempt to revive a discussion on the right list this time with all the correct people hopefully on CC. devicetree-spec would be more appropriate list for something like this.

[PATCH v12 2/6] pci: add Altera PCI vendor ID

2015-10-23 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan --- include/linux/pci_ids.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index d9ba49c..08e4462 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -1550,6 +1550,8 @@ #define

Re: [PATCH 2/2] efi: Fix warning of int-to-pointer-cast on x86 32-bit builds

2015-10-23 Thread Ingo Molnar
* Ingo Molnar wrote: > > * Ard Biesheuvel wrote: > > > From: Taku Izumi > > > > Commit 0f96a99dab36 ("efi: Add "efi_fake_mem" boot option") > > introduces the following warning message: > > > > drivers/firmware/efi/fake_mem.c:186:20: warning: cast to pointer > > from integer of

[PATCH v12 5/6] Documentation: dt-bindings: pci: altera pcie device tree binding

2015-10-23 Thread Ley Foon Tan
This patch adds the bindings for Altera PCIe host controller driver and Altera PCIe MSI driver. Signed-off-by: Ley Foon Tan Acked-by: Rob Herring --- .../devicetree/bindings/pci/altera-pcie-msi.txt| 28 + .../devicetree/bindings/pci/altera-pcie.txt| 49

[PATCH v12 4/6] pci: altera: Add Altera PCIe MSI driver

2015-10-23 Thread Ley Foon Tan
This patch adds Altera PCIe MSI driver. This soft IP supports configurable number of vectors, which is a dts parameter. Signed-off-by: Ley Foon Tan Reviewed-by: Marc Zyngier --- drivers/pci/host/Kconfig | 8 + drivers/pci/host/Makefile | 1 +

[PATCH v12 6/6] MAINTAINERS: Add Altera PCIe and MSI drivers maintainer

2015-10-23 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan --- MAINTAINERS | 16 1 file changed, 16 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index b8577ad9..96b9fac 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7958,6 +7958,14 @@ F: include/linux/pci* F: arch/x86/pci/ F:

[PATCH v12 0/6] Altera PCIe host controller driver with MSI support

2015-10-23 Thread Ley Foon Tan
This is the 12th version of patch set to add support for Altera PCIe host controller with MSI feature on Altera FPGA device families. This patchset mainly resovle the comments from Bjorn. This patchset is based on v4.3-rc6. v11->v12 changes: - pcie-altera: use DECLARE_PCI_FIXUP_EARLY for pcie

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