[PATCH 25/44] kdbus: Cleanup kdbus_cmd_conn_info()

2015-10-08 Thread Sergei Zviagintsev
- Move `entry' and `owner' to the scope where they are used. Drop redundand initialization of `entry'. Use conditional operator to set the value of `owner'. - Set `ret' to zero right after call to kdbus_pool_slice_copy_kvec(), not in the end of function. - Remove redundant goto.

[PATCH 26/44] kdbus: Cleanup kdbus_pin_dst()

2015-10-08 Thread Sergei Zviagintsev
- Reduce scope of `owner' var to the block where it is actually used. Use conditional operator to set its value. - Drop initialization of `dst' as it gets value later. - Drop separate exit point as we have only one use case of it. Signed-off-by: Sergei Zviagintsev ---

[PATCH 28/44] kdbus: Cleanup kdbus_queue_entry_new()

2015-10-08 Thread Sergei Zviagintsev
Remove separate exit point as the only error case in the function is when kdbus_staging_emit() fails. Assign a slice to temporary var first to not clear it explicitly on error and to return an error code without `ret' variable. Signed-off-by: Sergei Zviagintsev --- ipc/kdbus/queue.c | 16

Re: [PATCH 1/2] linux/kconfig.h: generalize IS_ENABLED logic

2015-10-08 Thread Michal Marek
On 2015-10-07 23:33, Rasmus Villemoes wrote: > On Wed, Oct 07 2015, Michal Marek wrote: >> It should be accompanied by a patch to scripts/tags.sh teaching >> ctags/etags about the new macros. > > Do you mean that something like > > --regex-c='/COND_CONFIG\([^,]*,([^,]*)\)/\1/' > > should

[PATCH 31/44] kdbus: Cleanup kdbus_conn_move_messages()

2015-10-08 Thread Sergei Zviagintsev
- Move `r' and `ret' to scopes where they are used. Drop redundant initialization of `ret'. - Initialize `bus' on declaration. - Replace list_for_each_entry_safe() with list_for_each_entry() when iterating over list of replies. - Drop redundant `continue'. Signed-off-by: Sergei

[PATCH 34/44] kdbus: Improve kdbus_conn_entry_sync_attach()

2015-10-08 Thread Sergei Zviagintsev
Use goto to handle error paths in conventional way. Use conditional operator instead of `remote_ret' var. Update the comment on waking up remote peer. Signed-off-by: Sergei Zviagintsev --- ipc/kdbus/connection.c | 52 -- 1 file changed, 21

[PATCH 30/44] kdbus: Cleanup kdbus_meta_proc_mask()

2015-10-08 Thread Sergei Zviagintsev
- Simplify if-statements 'proc < KDBUS_META_PROC_NORMAL' test only makes sense when we call kdbus_proc_permission(). Include it into 'prv_pid != req_pid' branch, remove redundant assignment of `proc' var and reduce its scope. - Drop redundant binary operation In 'proc <

[PATCH 32/44] kdbus: Remove duplicated code from kdbus_conn_lock2()

2015-10-08 Thread Sergei Zviagintsev
Signed-off-by: Sergei Zviagintsev --- ipc/kdbus/connection.h | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/ipc/kdbus/connection.h b/ipc/kdbus/connection.h index 679f393d3e68..3b382b604348 100644 --- a/ipc/kdbus/connection.h +++ b/ipc/kdbus/connection.h

Re: [PATCH v7 2/9] Input: goodix - reset device at init

2015-10-08 Thread Bastien Nocera
On Thu, 2015-10-08 at 12:54 +0200, Arnd Bergmann wrote: > I think lists like this in drivers should be avoided if at all > possible, > it just leads to other people adding their platform in the lists as > opposed to fixing their boot loaders. Instructions on fixing UEFI firmwares without the

Re: [PATCH v9 2/5] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-10-08 Thread chunfeng yun
Hi, On Tue, 2015-09-29 at 17:49 +0300, Sergei Shtylyov wrote: > On 09/29/2015 06:01 AM, Chunfeng Yun wrote: > > > add a DT binding documentation of xHCI host controller for the > > MT8173 SoC from Mediatek. > > > > Signed-off-by: Chunfeng Yun > > --- > >

[PATCH 36/44] kdbus: Improve kdbus_name_release()

2015-10-08 Thread Sergei Zviagintsev
Use goto to handle error paths in conventional way. Signed-off-by: Sergei Zviagintsev --- ipc/kdbus/names.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/ipc/kdbus/names.c b/ipc/kdbus/names.c index a1c3442f8e53..8e53681d1b7b 100644 ---

[PATCH 41/44] kdbus: Fix memfd install algorithm

2015-10-08 Thread Sergei Zviagintsev
If file descriptor allocation for memfd fails, we do not fill the corresponding position in `fds' array with -1. Later when we install memfds, fds[gaps->n_fds + i] will contain garbage which we pass then to fd_install(). Fix it by adding -1 to `fds' in case when we can't get free file descriptor

[PATCH 43/44] kdbus: Give up on failed fd allocation

2015-10-08 Thread Sergei Zviagintsev
If we failed to allocate a file descriptor, do not try to do it again on the next iteration. There are few chances that we will have success, and we can simplify the algorithm assuming that valid fd numbers are not mixed with -1 values. Signed-off-by: Sergei Zviagintsev --- ipc/kdbus/message.c

[PATCH 38/44] kdbus: Fix error path in kdbus_user_lookup()

2015-10-08 Thread Sergei Zviagintsev
If idr_alloc() fails, we shouldn't call idr_remove() as latter produces warning when called on non-allocated ids. Split cleanup code into three parts for differrent cleanup scenarios before and after idr_alloc(). Signed-off-by: Sergei Zviagintsev --- ipc/kdbus/domain.c | 20 ++--

[PATCH 39/44] kdbus: Cleanup kdbus_user_lookup()

2015-10-08 Thread Sergei Zviagintsev
- Do not initialize `u' with NULL as value is assigned to it at the first use. - Simplify if-statement. If `old' is non-NULL, it means that provided @uid is valid, so there is no need to check both. - Use `uid' and `domain' instead of `u->uid' and `u->domain' in error path, which is

[PATCH 40/44] kdbus: Cleanup kdbus_item_validate_name()

2015-10-08 Thread Sergei Zviagintsev
Calculate length of the string directly from item's payload size and simplify tests. Do not use strlen(), as kdbus_str_valid() guarantees that '\0' is located in the end of provided buffer. When examining contents of the string, use pointer instead of array index to stay more concise and readable.

[PATCH 44/44] kdbus: Cleanup kdbus_gaps_install()

2015-10-08 Thread Sergei Zviagintsev
- Assign `false' to *out_incomplete directly on no-op cases. - Initialize `ret' with zero during declaration instead of doing it in the end of the function. - Initialize `fd' and `memfd' vars during declaration to be more concise. Signed-off-by: Sergei Zviagintsev ---

[PATCH 37/44] kdbus: Fix error path in kdbus_meta_proc_collect_cgroup()

2015-10-08 Thread Sergei Zviagintsev
Current code checks return value of task_cgroup_path(), which can be NULL if provided buffer isn't long enough to store path there, but alters mp->valid in case of error, producing inconsistency. Return -ENAMETOOLONG if task_cgroup_path() fails. Signed-off-by: Sergei Zviagintsev ---

[PATCH 35/44] kdbus: Drop goto from kdbus_queue_entry_link()

2015-10-08 Thread Sergei Zviagintsev
Use conventional if-else logic instead of goto, which makes the function easier to read. Signed-off-by: Sergei Zviagintsev --- ipc/kdbus/queue.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/ipc/kdbus/queue.c b/ipc/kdbus/queue.c index

[PATCH 42/44] kdbus: Check if fd is allocated before trying to free it

2015-10-08 Thread Sergei Zviagintsev
Elements of `fds' array were set to -1 in case if we couldn't allocate a fd. Verify that element contains a valid fd number before submitting it to put_unused_fd(). Signed-off-by: Sergei Zviagintsev --- ipc/kdbus/message.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

Re: [PATCH net-next v4] net: Microchip encx24j600 driver

2015-10-08 Thread David Miller
From: j...@ringle.org Date: Tue, 6 Oct 2015 16:37:46 -0400 > From: Jon Ringle > > This ethernet driver supports the Micorchip enc424j600/626j600 Ethernet > controller over a SPI bus interface. This driver makes use of the regmap API > to > optimize access to registers by caching registers

[PATCH 13/44] kdbus: Use list_next_entry() in kdbus_queue_entry_unlink()

2015-10-08 Thread Sergei Zviagintsev
Use list_next_entry() instead of list_first_entry(). Signed-off-by: Sergei Zviagintsev --- ipc/kdbus/queue.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ipc/kdbus/queue.c b/ipc/kdbus/queue.c index f9c44d7bae6d..90e8d16f5967 100644 --- a/ipc/kdbus/queue.c +++

[PATCH 10/44] kdbus: Use conditional operator

2015-10-08 Thread Sergei Zviagintsev
Signed-off-by: Sergei Zviagintsev --- ipc/kdbus/names.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ipc/kdbus/names.c b/ipc/kdbus/names.c index bf44ca3f12b6..6b31b38ac2ad 100644 --- a/ipc/kdbus/names.c +++ b/ipc/kdbus/names.c @@ -438,10 +438,7 @@ static void

[PATCH 14/44] kdbus: Simplify expression in kdbus_get_memfd()

2015-10-08 Thread Sergei Zviagintsev
'(s & m) != m' means that mask 'm' contains some bits which are not set in 's', and this is literally equal to '~s & m'. Signed-off-by: Sergei Zviagintsev --- ipc/kdbus/message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipc/kdbus/message.c b/ipc/kdbus/message.c index

[PATCH 24/44] kdbus: Cleanup kdbus_conn_unicast()

2015-10-08 Thread Sergei Zviagintsev
Do not initialize `name' and `ret' as values are assigned to them at the first use by kdbus_pin_dst(). Simplify handling of kdbus_conn_entry_insert() return value and drop useless goto. Signed-off-by: Sergei Zviagintsev --- ipc/kdbus/connection.c | 10 -- 1 file changed, 4

[PATCH 33/44] kdbus: Improve kdbus_staging_reserve()

2015-10-08 Thread Sergei Zviagintsev
Allow to reserve N elements in row. This eliminates duplicated code. Signed-off-by: Sergei Zviagintsev --- ipc/kdbus/message.c | 22 -- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/ipc/kdbus/message.c b/ipc/kdbus/message.c index e337b1b1024a..f2176796390d

[PATCH 17/44] kdbus: Drop duplicated code from kdbus_pool_slice_alloc()

2015-10-08 Thread Sergei Zviagintsev
Check the value of `ret' instead of keeping separate exit point. Signed-off-by: Sergei Zviagintsev --- ipc/kdbus/pool.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ipc/kdbus/pool.c b/ipc/kdbus/pool.c index cb692a35755b..75a7366baa34 100644 --- a/ipc/kdbus/pool.c +++

[PATCH 22/44] kdbus: Cleanup error path in kdbus_staging_new_user()

2015-10-08 Thread Sergei Zviagintsev
Replace duplicated cleanup code with jump to exit point. Signed-off-by: Sergei Zviagintsev --- ipc/kdbus/message.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ipc/kdbus/message.c b/ipc/kdbus/message.c index c7ef23d40471..e337b1b1024a 100644 --- a/ipc/kdbus/message.c

[PATCH 08/44] kdbus: Rename var in kdbus_meta_export_caps()

2015-10-08 Thread Sergei Zviagintsev
Rename `parent' to `member'. We currently set `parent' to true during iteration over namespaces if `cred' resides in one of parent namespaces of `user_ns'. But if `cred' is a member of `user_ns' itself, `parent' name is not the best choice. Also new `member' name is more consistent with the

[PATCH 16/44] kdbus: Drop redundant code from kdbus_name_acquire()

2015-10-08 Thread Sergei Zviagintsev
We already reached the end of function at this point, so remove useless goto. Signed-off-by: Sergei Zviagintsev --- ipc/kdbus/names.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/ipc/kdbus/names.c b/ipc/kdbus/names.c index 4dea83defc8e..a1c3442f8e53 100644 --- a/ipc/kdbus/names.c +++

[PATCH 29/44] kdbus: Improve tests on incrementing quota

2015-10-08 Thread Sergei Zviagintsev
- Rewrite quota->memory + memory > U32_MAX as U32_MAX - quota->memory < memory There is no overflow issue in the original expression on 32-bit because the previous one (available - quota->memory < memory) guarantees that quota->memory + memory doesn't exceed

[PATCH 27/44] kdbus: Cleanup kdbus_conn_new()

2015-10-08 Thread Sergei Zviagintsev
- Replace two tests with one. Sequence of tests name && !is_activator && !is_policy_holder !name && (is_activator || is_policy_holder) is the same as name XOR (is_activator || is_policy_holder) Replace these two expressions with !name == (is_activator ||

[PATCH 12/44] kdbus: Use conventional list macros in __kdbus_pool_slice_release()

2015-10-08 Thread Sergei Zviagintsev
Use list_next_entry() and list_prev_entry(). Signed-off-by: Sergei Zviagintsev --- ipc/kdbus/pool.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ipc/kdbus/pool.c b/ipc/kdbus/pool.c index c26ef963d8d1..cb692a35755b 100644 --- a/ipc/kdbus/pool.c +++ b/ipc/kdbus/pool.c

[PATCH 00/44] kdbus cleanups

2015-10-08 Thread Sergei Zviagintsev
Hi all, This is a set of various kdbus code cleanups. Patches are ordered by increasing complexity, starting with docs and comments fixes and one-liners. Patch 29 is the revised version of http://lkml.kernel.org/g/1435497454-10464-6-git-send-email-ser...@s15v.net Feel free to ask to change

[PATCH 04/44] kdbus: Update kernel-doc for struct kdbus_pool

2015-10-08 Thread Sergei Zviagintsev
Add words on how free and busy slices trees are sorted. Signed-off-by: Sergei Zviagintsev --- ipc/kdbus/pool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipc/kdbus/pool.c b/ipc/kdbus/pool.c index 0433e26b777e..84afe96fbc22 100644 --- a/ipc/kdbus/pool.c +++

[PATCH 02/44] uapi: kdbus.h: Kernel-doc fixes

2015-10-08 Thread Sergei Zviagintsev
- Fix typos and spelling errors, use proper case. - struct kdbus_pids: Add PPID to description. - struct kdbus_item: Add missing @pids, @fsd and KDBUS_ITEM_PAYLOAD_OFF. Signed-off-by: Sergei Zviagintsev --- include/uapi/linux/kdbus.h | 43 +++ 1

[PATCH 01/44] Documentation/kdbus: Document new name registry flags

2015-10-08 Thread Sergei Zviagintsev
Add description of KDBUS_NAME_PRIMARY and KDBUS_NAME_ACQUIRED flags which were added in commit 0486b859f05a ("kdbus: inform caller about exact updates on NAME_ACQUIRE"). Signed-off-by: Sergei Zviagintsev --- Documentation/kdbus/kdbus.name.xml | 42 +++--- 1 file

[PATCH 05/44] kdbus: Add comment on merging free pool slices

2015-10-08 Thread Sergei Zviagintsev
Add comment on why we remove the same slice from free slices tree and then add it back again when merging the slice to be released with previous free slice. Signed-off-by: Sergei Zviagintsev --- ipc/kdbus/pool.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/ipc/kdbus/pool.c

Re: [PATCH v3 0/5] Add support for Broadcom's iProc MDIO and Cygnus Ethernet PHY

2015-10-08 Thread David Miller
From: Arun Parameswaran Date: Tue, 6 Oct 2015 12:25:45 -0700 > This patchset adds support for the iProc MDIO interface and the > Broadcom Cygnus SoC's internal Ethernet PHY. Series applied to net-next, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: [PATCH v9 1/5] dt-bindings: Add usb3.0 phy binding for MT65xx SoCs

2015-10-08 Thread chunfeng yun
Hi, On Tue, 2015-09-29 at 17:43 +0300, Sergei Shtylyov wrote: > Hello. > > On 09/29/2015 06:01 AM, Chunfeng Yun wrote: > > > add a DT binding documentation of usb3.0 phy for MT65xx > > SoCs from Mediatek. > > > > Acked-by: Rob Herring > > Signed-off-by: Chunfeng Yun > > --- > >

Re: [PATCH] bridge/netfilter: avoid unused label warning

2015-10-08 Thread David Miller
From: Arnd Bergmann Date: Tue, 06 Oct 2015 21:22:12 +0200 > With the ARM mini2440_defconfig, the bridge netfilter code gets > built with both CONFIG_NF_DEFRAG_IPV4 and CONFIG_NF_DEFRAG_IPV6 > disabled, which leads to a harmless gcc warning: > > net/bridge/br_netfilter_hooks.c: In function

Re: [PATCH] cpufreq: arm_big_little: fix frequency check when bL switcher is active

2015-10-08 Thread Viresh Kumar
On 08-10-15, 10:23, Jon Medhurst (Tixy) wrote: > On Wed, 2015-10-07 at 23:09 +0530, Viresh Kumar wrote: > [...] > > And why not fix it properly by doing this: > > > > diff --git a/drivers/cpufreq/arm_big_little.c > > b/drivers/cpufreq/arm_big_little.c > > index f1e42f8ce0fc..5b36657a76d6 100644

[PATCH] stm class: Select configfs

2015-10-08 Thread Alexander Shishkin
STM policy handling is basically configfs, I honestly don't know how we ended up without a Kconfig dependency, but thanks to randconfig testing, it's now caught. Reported-by: Jim Davis Signed-off-by: Alexander Shishkin --- drivers/hwtracing/stm/Kconfig | 1 + 1 file changed, 1 insertion(+)

Re: [PATCH v4 00/14] RDS: connection scalability and performance improvements

2015-10-08 Thread David Miller
From: Santosh Shilimkar Date: Wed, 7 Oct 2015 08:53:34 -0700 > [v4] > Re-sending the same patches from v3 again since my repost of > patch 05/14 from v3 was whitespace damaged. > > [v3] > Updated patch "[PATCH v2 05/14] RDS: defer the over_batch work to > send worker" as per David Miller's

Re: [PATCH v6 0/6] KASAN for arm64

2015-10-08 Thread Andrey Ryabinin
On 10/08/2015 02:11 PM, Mark Rutland wrote: > On Thu, Oct 08, 2015 at 01:36:09PM +0300, Andrey Ryabinin wrote: >> 2015-10-07 13:04 GMT+03:00 Catalin Marinas : >>> On Thu, Sep 17, 2015 at 12:38:06PM +0300, Andrey Ryabinin wrote: As usual patches available in git

Re: [PATCH] PM / OPP: fix build warning

2015-10-08 Thread Pavel Machek
On Wed 2015-10-07 16:49:25, Sudip Mukherjee wrote: > We were getting build warning that: > expected 'bool *' but argument is of type 'u32 *' > > debugfs_create_bool() used to take the argument as (u32 *), but commit > 621a5f7ad9cd ("debugfs: Pass bool pointer to debugfs_create_bool()") > has

Re: CFS scheduler unfairly prefers pinned tasks

2015-10-08 Thread Peter Zijlstra
On Thu, Oct 08, 2015 at 09:54:21PM +1100, paul.sz...@sydney.edu.au wrote: > Good to see that you agree on the fairness issue... it MUST be fixed! > CFS might be wrong or wasteful, but never unfair. I've not yet had time to look at the case at hand, but there are wat is called 'infeasible weight'

[PATCH 4/4] arm64: dts: apq8016-sbc: enable spi buses on LS and HS

2015-10-08 Thread Srinivas Kandagatla
This patch enables spi buses on low speed and high speed expansion connectors on DB410C Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi

[PATCH 2/4] arm64: dts: qcom: Add msm8916 I2C nodes.

2015-10-08 Thread Srinivas Kandagatla
This patch adds missing support for i2c0 and i2c6, this support is required to connect the i2c slaves on LS expansion on DB410c. Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/msm8916-pins.dtsi | 48 ++ arch/arm64/boot/dts/qcom/msm8916.dtsi | 31

[PATCH 1/4] arm64: dts: fix i2c pinconf sleep state function

2015-10-08 Thread Srinivas Kandagatla
This patch fixes the i2c pinctrl sleep state by changing the pinconf function to be in gpio mode rather than i2c. Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/msm8916-pins.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 3/4] arm64: dts: apq8016-sbc: enable i2c buses on LS and HS

2015-10-08 Thread Srinivas Kandagatla
This patch enables i2c buses on low speed and high speed expansion connectors on DB410C. Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi

[PATCH 0/4] arm64: dts: qcom: add support to LS and HS connectors

2015-10-08 Thread Srinivas Kandagatla
Hi Andy, This patchset adds support for i2c and spi on High-Speed and Low speed connectors on DB410c. One of the patch fixes the sleep state of existing i2c node. thanks, srini Srinivas Kandagatla (4): arm64: dts: fix i2c pinconf sleep state function arm64: dts: qcom: Add msm8916 I2C

Re: [PATCH v2 14/22] arm64: Cleanup HWCAP handling

2015-10-08 Thread Russell King - ARM Linux
On Thu, Oct 08, 2015 at 12:10:00PM +0100, Catalin Marinas wrote: > On Mon, Oct 05, 2015 at 06:02:03PM +0100, Suzuki K. Poulose wrote: > > +static bool cpus_have_hwcap(const struct arm64_cpu_capabilities *cap) > > +{ > > + switch(cap->hwcap_type) { > > + case CAP_HWCAP: > > + return

Re: [PATCH 4/5] dt-bindings: add binding for marvell berlin4ct SoC

2015-10-08 Thread Jisheng Zhang
Hi Stephen, On Thu, 1 Oct 2015 15:50:27 -0700 Stephen Boyd wrote: > On 09/22, Jisheng Zhang wrote: > > +This binding uses the common clock binding[1]. > > + > > +[1] Documentation/devicetree/bindings/clock/clock-bindings.txt > > + > > +The berlin4ct clock subsystem generates and supplies clock

Re: [PATCH v2] barriers: introduce smp_mb__release_acquire and update documentation

2015-10-08 Thread Peter Zijlstra
On Thu, Oct 08, 2015 at 02:50:36PM +1100, Michael Ellerman wrote: > On Wed, 2015-10-07 at 08:25 -0700, Paul E. McKenney wrote: > > Currently, we do need smp_mb__after_unlock_lock() to be after the > > acquisition on PPC -- putting it between the unlock and the lock > > of course doesn't cut it

Re: KDBUS and freezing of DBUS-querying applications

2015-10-08 Thread David Herrmann
Hi On Fri, Oct 2, 2015 at 12:53 PM, Мисбах-Соловьёв Вадим wrote: > Hello! > I'm experiencing a strange issue, when using KDBUS, but I don't know how to > properly report it and which info I should proide in addition to th one below. > > In short, some userspace applications I'm using are

Re: [PATCH v6 0/6] KASAN for arm64

2015-10-08 Thread Mark Rutland
On Thu, Oct 08, 2015 at 01:36:09PM +0300, Andrey Ryabinin wrote: > 2015-10-07 13:04 GMT+03:00 Catalin Marinas : > > On Thu, Sep 17, 2015 at 12:38:06PM +0300, Andrey Ryabinin wrote: > >> As usual patches available in git > >> git://github.com/aryabinin/linux.git kasan/arm64v6 > >> > >>

[PATCH 5/5] ARM: dts: imx7d-sdb: add ADC support

2015-10-08 Thread Haibo Chen
Add ADC support for imx7d-sdb board. Signed-off-by: Haibo Chen --- arch/arm/boot/dts/imx7d-sdb.dts | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d-sdb.dts index 432aaf5..b2c4536 100644 ---

Re: [PATCH v2 16/22] arm64/debug: Make use of the system wide safe value

2015-10-08 Thread Catalin Marinas
On Mon, Oct 05, 2015 at 06:02:05PM +0100, Suzuki K. Poulose wrote: > @@ -137,13 +138,17 @@ extern struct pmu perf_ops_bp; > /* Determine number of BRP registers available. */ > static inline int get_num_brps(void) > { > - return ((read_cpuid(ID_AA64DFR0_EL1) >> 12) & 0xf) + 1; > +

[PATCH 1/5] iio: adc: add IMX7D ADC driver support

2015-10-08 Thread Haibo Chen
Freescale i.MX7D soc contains a new ADC IP. This patch add this ADC driver support, and the driver only support ADC software trigger. Signed-off-by: Haibo Chen --- drivers/iio/adc/Kconfig | 9 + drivers/iio/adc/Makefile| 1 + drivers/iio/adc/imx7d_adc.c | 586

[PATCH 4/5] ARM: dts: imx7d.dtsi: add ADC support

2015-10-08 Thread Haibo Chen
Add imx7d ADC support. Signed-off-by: Haibo Chen --- arch/arm/boot/dts/imx7d.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/imx7d.dtsi b/arch/arm/boot/dts/imx7d.dtsi index ebc053a..87c3319 100644 --- a/arch/arm/boot/dts/imx7d.dtsi +++

[PATCH v3] scsi: ufs: add ioctl interface for query request

2015-10-08 Thread Yaniv Gardi
This patch exposes the ioctl interface for UFS driver via SCSI device ioctl interface. As of now UFS driver would provide the ioctl for query interface to connected UFS device. Signed-off-by: Dolev Raviv Signed-off-by: Noa Rubens Signed-off-by: Raviv Shvili Signed-off-by: Gilad Broner

Re: [PATCH v7 0/9] Goodix touchscreen enhancements

2015-10-08 Thread Arnd Bergmann
On Thursday 08 October 2015 13:19:26 Irina Tirdea wrote: > Add several enhancements to the Goodix touchscreen driver. > > Bastien, the functionality from this patches should be now skipped > for your devices (Onda v975w, WinBook TW100 and WinBook TW700). > > Aleksei, I have removed your

Re: [PATCH v2 14/22] arm64: Cleanup HWCAP handling

2015-10-08 Thread Catalin Marinas
On Mon, Oct 05, 2015 at 06:02:03PM +0100, Suzuki K. Poulose wrote: > +static bool cpus_have_hwcap(const struct arm64_cpu_capabilities *cap) > +{ > + switch(cap->hwcap_type) { > + case CAP_HWCAP: > + return !!(elf_hwcap & cap->hwcap); > +#ifdef CONFIG_COMPAT > + case

Re: [PATCH v2 12/22] arm64: Delay cpu feature checks

2015-10-08 Thread Catalin Marinas
On Mon, Oct 05, 2015 at 06:02:01PM +0100, Suzuki K. Poulose wrote: > @@ -647,16 +648,119 @@ void check_cpu_capabilities(const struct > arm64_cpu_capabilities *caps, > cpus_set_cap(caps[i].capability); > } > > - /* second pass allows enable() to consider interacting

Re: [PATCH 3/3] Documentation/kdbus: Add missing ECANCELED errno description

2015-10-08 Thread David Herrmann
Hi On Mon, Sep 28, 2015 at 4:49 PM, Lukasz Skalski wrote: > Signed-off-by: Lukasz Skalski This should really be extended to properly explain the cancellation mode, but better add it than skipping it. I put it on my TODO list. This is: Reviewed-by: David Herrmann Thanks David > --- >

Re: [PATCH v6 0/6] KASAN for arm64

2015-10-08 Thread Mark Rutland
On Thu, Oct 08, 2015 at 01:36:09PM +0300, Andrey Ryabinin wrote: > 2015-10-07 13:04 GMT+03:00 Catalin Marinas : > > On Thu, Sep 17, 2015 at 12:38:06PM +0300, Andrey Ryabinin wrote: > >> As usual patches available in git > >> git://github.com/aryabinin/linux.git kasan/arm64v6 > >> > >>

Re: [PATCH 2/3] Documentation/kdbus: fix copy/paste error in kdbus.match.xml

2015-10-08 Thread David Herrmann
Hi On Mon, Sep 28, 2015 at 4:49 PM, Lukasz Skalski wrote: > Signed-off-by: Lukasz Skalski Looks good: Reviewed-by: David Herrmann Thanks David > --- > Documentation/kdbus/kdbus.match.xml | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git

Re: [PATCH 1/3] Documentation/kdbus: use valid endpoint names

2015-10-08 Thread David Herrmann
Hi On Mon, Sep 28, 2015 at 4:49 PM, Lukasz Skalski wrote: > Endpoint names must be prefixed with the numeric effective UID of the creator > and a dash - we shouldn't use invalid names in documentation. > > Signed-off-by: Lukasz Skalski Nice catch! Reviewed-by: David Herrmann Thanks David >

Re: [RFC 2/3] kdbus: selftests extended

2015-10-08 Thread David Herrmann
Hi On Thu, Sep 24, 2015 at 2:07 PM, Paul Osmialowski wrote: > The 'test-send' test case should connect to an already running test-daemon > which creates a bus with known name. > > The main goal of this test case is to verify that messages as well as > file descriptors (opened with different open

Re: [PATCH v8 0/2] Enable capsule loader interface for efi firmware updating

2015-10-08 Thread Bryan O'Donoghue
On 08/10/15 04:50, Kweh, Hock Leong wrote: -Original Message- From: Bryan O'Donoghue [mailto:pure.lo...@nexus-software.ie] Sent: Wednesday, October 07, 2015 11:00 PM Wilson. Same question as at V7. If you aren't supporting the MFH on Galileo then what capsule are you using with 0.75

Re: [RFC 0/3] kdbus: extend selftests

2015-10-08 Thread David Herrmann
Hi On Thu, Sep 24, 2015 at 2:07 PM, Paul Osmialowski wrote: > This serie extends kdbus selftests with following new features: > > - ability to specify TEST_CREATE_CONN without TEST_CREATE_BUS > - the 'test-send' test case (by Karol Lewandowski) > - ability to run kdbus test by executable binary

Re: [PATCH v2] mmc: core: Fix init_card in 52Mhz

2015-10-08 Thread Ulf Hansson
On 8 October 2015 at 09:09, Chaotian Jing wrote: > Suppose that we got a data crc error, and it triggers the mmc_reset. > mmc_reset will call mmc_send_status to see if HW reset was supported. > before issue CMD13, it will do retune, and if EMMC was in HS400 mode, > it will reduce frequency to

Re: [PATCH 1/5] clk: berlin: add common pll driver

2015-10-08 Thread Jisheng Zhang
Hi Stephen, On Thu, 1 Oct 2015 15:32:20 -0700 Stephen Boyd wrote: > On 09/22, Jisheng Zhang wrote: > > diff --git a/drivers/clk/berlin/pll.c b/drivers/clk/berlin/pll.c > > new file mode 100644 > > index 000..9aad0b6 > > --- /dev/null > > +++ b/drivers/clk/berlin/pll.c > > @@ -0,0 +1,119 @@

[PATCH 2/5] Documentation: add the binding file for Freescale imx7d ADC driver

2015-10-08 Thread Haibo Chen
The patch adds the binding file for Freescale imx7d ADC driver. Signed-off-by: Haibo Chen --- .../devicetree/bindings/iio/adc/imx7d-adc.txt | 26 ++ 1 file changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/imx7d-adc.txt diff --git

[PATCH 3/5] clk: imx7d: add ADC root clock

2015-10-08 Thread Haibo Chen
Add ADC root clock support in imx7d clock tree. Signed-off-by: Haibo Chen --- drivers/clk/imx/clk-imx7d.c | 1 + include/dt-bindings/clock/imx7d-clock.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c

Re: CFS scheduler unfairly prefers pinned tasks

2015-10-08 Thread paul . szabo
Dear Mike, > I see a fairness issue ... but one opposite to your complaint. Why is that opposite? I think it would be fair for the one pert process to get 100% CPU, the many oink processes can get everything else. That one oink is lowly 10% (when others are 100%) is of no consequence. What

Re: [PATCH v7 2/9] Input: goodix - reset device at init

2015-10-08 Thread Arnd Bergmann
On Thursday 08 October 2015 13:19:28 Irina Tirdea wrote: > After power on, it is recommended that the driver resets the device. > The reset procedure timing is described in the datasheet and is used > at device init (before writing device configuration) and > for power management. It is a sequence

Re: [PATCH v2 2/6] pinctrl: berlin: add the berlin4ct pinctrl driver

2015-10-08 Thread Jisheng Zhang
Hi Antoine, On Fri, 2 Oct 2015 15:21:39 +0200 Antoine Tenart wrote: > Hi Jisheng, > > Sorry for the delay, I was quite busy these days... > > Thanks for the nice comments! > > I saw your using pin names in the BERLIN_PINCTRL_GROUP macro, like > "EMMC_RSTn". In other berlin pinctrl drivers we

Re: [PATCH] af_unix: introduce unix_sk_const helper

2015-10-08 Thread David Miller
From: Arnd Bergmann Date: Tue, 06 Oct 2015 22:52:46 +0200 > Commit 124613012db1 ("af_unix: Convert the unix_sk macro to an inline > function for type safety") was recently added to catch incorrect > uses of the unix_sk helper using compiler warnings. > > It has now caught one such case in

Re: [PATCH v8 3/6] pci:host: Add Altera PCIe host controller driver

2015-10-08 Thread kbuild test robot
Hi Ley, [auto build test WARNING on v4.3-rc4 -- if it's inappropriate base, please ignore] config: x86_64-allmodconfig (attached as .config) reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All warnings (new ones prefixed by >>):

Re: [PATCH net-next v3 1/2] regmap: Allow installing custom reg_update_bits function

2015-10-08 Thread David Miller
From: Mark Brown Date: Tue, 6 Oct 2015 17:30:11 +0100 > On Thu, Oct 01, 2015 at 12:38:07PM -0400, j...@ringle.org wrote: >> From: Jon Ringle >> >> This commit allows installing a custom reg_update_bits function for cases >> where >> the hardware provides a mechanism to set or clear register

Re: [PATCH v2 11/22] arm64: Populate cpuinfo after notify_cpu_starting

2015-10-08 Thread Suzuki K. Poulose
On 08/10/15 11:15, Catalin Marinas wrote: On Mon, Oct 05, 2015 at 06:02:00PM +0100, Suzuki K. Poulose wrote: diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c index cb3e0d8..6987de4 100644 --- a/arch/arm64/kernel/smp.c +++ b/arch/arm64/kernel/smp.c @@ -163,14 +163,14 @@ asmlinkage

Re: [PATCHv2] si2157: Bounds check firmware

2015-10-08 Thread Olli Salonen
Reviewed-by: Olli Salonen Tested-by: Olli Salonen On 6 October 2015 at 01:33, Laura Abbott wrote: > > When reading the firmware and sending commands, the length > must be bounds checked to avoid overrunning the size of the command > buffer and smashing the stack if the firmware is not in the

Re: [PATCH] serial: atmel: fix compiler warning on address cast

2015-10-08 Thread Alexandre Belloni
On 08/10/2015 at 10:37:49 +0100, Russell King - ARM Linux wrote : > On Thu, Oct 08, 2015 at 11:01:48AM +0200, Alexandre Belloni wrote: > > On 05/10/2015 at 18:00:52 +0100, Andre Przywara wrote : > > > Turning on KVM and LPAE support on top of a multi_v7_defconfig will > > > produce a compiler

Re: [PATCH v2 1/6] pinctrl: berlin: regmap as an extra argument of berlin_pinctrl_probe()

2015-10-08 Thread Jisheng Zhang
Hi Antoine, On Fri, 2 Oct 2015 15:04:56 +0200 Antoine Tenart wrote: > Hi Jisheng, > > Thanks for providing this! Just back from vocation. Thanks for the review feedbacks > > On Mon, Sep 21, 2015 at 06:04:15PM +0800, Jisheng Zhang wrote: > > Let berlin_pinctrl_probe() accepts an extra

Re: [PATCH net-next 3/6] net: remove dsa.h include from linux/netdevice.h

2015-10-08 Thread Wei Xu
On 10/8/2015 10:18 AM, Jiri Pirko wrote: > Thu, Oct 08, 2015 at 11:04:48AM CEST, l...@intel.com wrote: >> Hi Vivien, >> >> [auto build test ERROR on net-next/master -- if it's inappropriate base, >> please ignore] >> >> config: arm64-allyesconfig (attached as .config) >> reproduce: >>

Re: [PATCH v6 0/6] KASAN for arm64

2015-10-08 Thread Andrey Ryabinin
2015-10-07 13:04 GMT+03:00 Catalin Marinas : > On Thu, Sep 17, 2015 at 12:38:06PM +0300, Andrey Ryabinin wrote: >> As usual patches available in git >> git://github.com/aryabinin/linux.git kasan/arm64v6 >> >> Changes since v5: >> - Rebase on top of 4.3-rc1 >> - Fixed EFI boot. >> -

Re: [RFC V2] regmap: change bool to 1 bit variable in struct regmap

2015-10-08 Thread Mark Brown
On Thu, Oct 08, 2015 at 04:26:30PM +0800, yalin wang wrote: > This patch change some bool variables in struct regmap { } > to be u8 v : 1 type, so that we can shrink the sizeof of struct regmap. This doesn't apply against current code (my git for-next) - please check and resend. signature.asc

Re: [RFC] regmap: change bool to 1 bit variable in struct regmap

2015-10-08 Thread Mark Brown
On Thu, Oct 08, 2015 at 04:42:42PM +0800, yalin wang wrote: > i also found lots of code use this wrong coding style by search source code : > $ egrep -H ' : [0-9]+' `find . -name *.h` | grep -v '?' > ~/result.txt Mostly old and/or obscure code, or code that's shared with other things.

Re: [Dell XPS 13 9343] Random kernel Oops at boot with "acpi=ht", disappearing with "acpi=off"

2015-10-08 Thread Mika Westerberg
On Thu, Oct 08, 2015 at 12:17:39PM +0200, Niccolò Belli wrote: > Il giovedì 8 ottobre 2015 12:06:15 CEST, Mika Westerberg ha scritto: > >On Mon, Oct 05, 2015 at 05:59:38PM +0200, Niccolò Belli wrote: > >>Il lunedì 5 ottobre 2015 15:54:49 CEST, Mika Westerberg ha scritto: ... > > > >It looks like a

Re: [PATCH v3 2/3] uio_pci_generic: add MSI/MSI-X support

2015-10-08 Thread Michael S. Tsirkin
On Thu, Oct 08, 2015 at 12:19:20PM +0300, Avi Kivity wrote: > > > On 10/08/2015 11:32 AM, Michael S. Tsirkin wrote: > >On Thu, Oct 08, 2015 at 08:33:45AM +0300, Avi Kivity wrote: > >>On 08/10/15 00:05, Michael S. Tsirkin wrote: > >>>On Wed, Oct 07, 2015 at 07:39:16PM +0300, Avi Kivity wrote: >

Re: [PATCH v4 1/2] arm64: Introduce IRQ stack

2015-10-08 Thread Pratyush Anand
Hi Jungseok, On 07/10/2015:03:28:11 PM, Jungseok Lee wrote: > Currently, kernel context and interrupts are handled using a single > kernel stack navigated by sp_el1. This forces a system to use 16KB > stack, not 8KB one. This restriction makes low memory platforms suffer > from memory pressure

Re: [PATCH tip/core/rcu 02/18] rcu: Move rcu_report_exp_rnp() to allow consolidation

2015-10-08 Thread Peter Zijlstra
On Wed, Oct 07, 2015 at 08:18:29AM -0700, Paul E. McKenney wrote: > Actually, this would be quite good. "Premature abstraction is the > root of all evil" and all that, but this abstraction is anything but > premature. My thought would be to have it against commit cd58087c9cee > ("Merge branches

Re: [PATCH 10/10] drivers:hv: Define the channel type for Hyper-V PCI Express pass-through

2015-10-08 Thread Vitaly Kuznetsov
"K. Y. Srinivasan" writes: > From: Jake Oshins > > This defines the channel type for PCI front-ends in Hyper-V VMs. > > Signed-off-by: Jake Oshins > Signed-off-by: K. Y. Srinivasan > --- > drivers/hv/channel_mgmt.c |3 +++ > include/linux/hyperv.h| 11 +++ > 2 files

[PATCH v7 3/9] Input: goodix - write configuration data to device

2015-10-08 Thread Irina Tirdea
Goodix devices can be configured by writing custom data to the device at init. The configuration data is read with request_firmware from "goodix__cfg.bin", where is the product id read from the device (e.g.: goodix_911_cfg.bin for Goodix GT911, goodix_9271_cfg.bin for GT9271). The configuration

[PATCH v7 0/9] Goodix touchscreen enhancements

2015-10-08 Thread Irina Tirdea
Add several enhancements to the Goodix touchscreen driver. Bastien, the functionality from this patches should be now skipped for your devices (Onda v975w, WinBook TW100 and WinBook TW700). Aleksei, I have removed your Tested-by tag since I have done some non-trivial changes to the "reset device

[PATCH 1/1] ASoC: da7213: Correct units description of dmic-clkrate

2015-10-08 Thread Adam Thomson
Description previously stated MHz whereas the resolution is in Hz. This has now has been updated to align with reality. Signed-off-by: Adam Thomson --- This patch is based on changes introduced under patch: 'ASoC: da7213: Add bindings documentation for codec driver' (Commit

[PATCH v7 5/9] Input: goodix - use goodix_i2c_write_u8 instead of i2c_master_send

2015-10-08 Thread Irina Tirdea
Use goodix_i2c_write_u8 instead of i2c_master_send to simplify code. Signed-off-by: Irina Tirdea --- drivers/input/touchscreen/goodix.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c index

Re: linux-next: build failure after merge of the battery tree

2015-10-08 Thread Stephen Rothwell
Hi Belisko, On Thu, 8 Oct 2015 08:12:06 +0200 Belisko Marek wrote: > > I did test it and it builds fine (multi_v7_defconfig). My HEAD is on > dad463bdcbb41dfd17c799a5653bb57f185f2c76 That is next-20151002 which does not contain the broken commit. I am using the battery tree that was included

<    4   5   6   7   8   9   10   11   12   13   >