Re: [PATCH v11 17/22] vfio_platform: Updated to use vfio_set_irqs_validate_and_prepare()

2016-11-08 Thread Alexey Kardashevskiy
On 05/11/16 08:10, Kirti Wankhede wrote: > Updated vfio_platform_common.c file to use > vfio_set_irqs_validate_and_prepare() > > Signed-off-by: Kirti Wankhede > Signed-off-by: Neo Jia > Change-Id: Id87cd6b78ae901610b39bf957974baa6f40cd7b0 > --- > drivers/vfio/platform/vfio_platform_common.c | 3

Re: [PATCH 1/6] mm: khugepaged: fix radix tree node leak in shmem collapse error path

2016-11-08 Thread Jan Kara
On Mon 07-11-16 14:07:36, Johannes Weiner wrote: > The radix tree counts valid entries in each tree node. Entries stored > in the tree cannot be removed by simpling storing NULL in the slot or > the internal counters will be off and the node never gets freed again. > > When collapsing a shmem page

[PATCH 3/6 v7] sched: factorize PELT update

2016-11-08 Thread Vincent Guittot
Every time, we modify load/utilization of sched_entity, we start to sync it with its cfs_rq. This update is done is different ways: -when attaching/detaching a sched_entity, we update cfs_rq and then we sync the entity with the cfs_rq. -when enqueueing/dequeuing the sched_entity, we update both sch

[PATCH 6/6 v7] sched: fix task group initialization

2016-11-08 Thread Vincent Guittot
The moves of tasks are now propagated down to root and the utilization of cfs_rq reflects reality so it doesn't need to be estimated at init. Signed-off-by: Vincent Guittot --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sc

[PATCH 4/6 v7] sched: propagate load during synchronous attach/detach

2016-11-08 Thread Vincent Guittot
When a task moves from/to a cfs_rq, we set a flag which is then used to propagate the change at parent level (sched_entity and cfs_rq) during next update. If the cfs_rq is throttled, the flag will stay pending until the cfs_rq is unthrottled. For propagating the utilization, we copy the utilizatio

[PATCH 2/6 v7] sched: fix hierarchical order in rq->leaf_cfs_rq_list

2016-11-08 Thread Vincent Guittot
Fix the insertion of cfs_rq in rq->leaf_cfs_rq_list to ensure that a child will always be called before its parent. The hierarchical order in shares update list has been introduced by commit 67e86250f8ea ("sched: Introduce hierarchal order on shares update list") With the current implementation a

[PATCH 0/6 v7] sched: reflect sched_entity move into task_group's load

2016-11-08 Thread Vincent Guittot
Ensure that the move of a sched_entity will be reflected in load and utilization of the task_group hierarchy. When a sched_entity moves between groups or CPUs, load and utilization of cfs_rq don't reflect the changes immediately but converge to new values. As a result, the metrics are no more alig

Re: [git pull] drm fixes for 4.9-rc4

2016-11-08 Thread Daniel Vetter
On Fri, Nov 04, 2016 at 05:58:55PM -0400, Theodore Ts'o wrote: > On Fri, Nov 04, 2016 at 01:38:25PM -0700, Linus Torvalds wrote: > > On Wed, Nov 2, 2016 at 5:31 PM, Dave Airlie wrote: > > > > > > There are a set of fixes for an oops we've been seeing around MST > > > display unplug, > > > > Side

[PATCH 5/6 v7] sched: propagate asynchrous detach

2016-11-08 Thread Vincent Guittot
A task can be asynchronously detached from cfs_rq when migrating between CPUs. The load of the migrated task is then removed from source cfs_rq during its next update. We use this event to set propagation flag. During the load balance, we take advantage of the update of blocked load to propagate a

[PATCH 1/6 v7] sched: factorize attach/detach entity

2016-11-08 Thread Vincent Guittot
Factorize post_init_entity_util_avg and part of attach_task_cfs_rq in one function attach_entity_cfs_rq. Create symmetric detach_entity_cfs_rq function Signed-off-by: Vincent Guittot --- kernel/sched/fair.c | 53 +++-- 1 file changed, 31 insertions

Re: [PATCH v4] PM/devfreq: add suspend frequency support

2016-11-08 Thread hl
Hi Chanwoo Choi, On 2016年11月08日 17:32, Chanwoo Choi wrote: Hi Lin, On 2016년 11월 08일 18:11, Lin Huang wrote: Add suspend frequency support and if needed set it to the frequency obtained from the suspend opp (can be defined using opp-v2 bindings and is optional). Signed-off-by: Lin Huang --- C

Re: [PATCH v2 0/6] Fix PDF builds on media documentation

2016-11-08 Thread Mauro Carvalho Chehab
Em Tue, 8 Nov 2016 07:19:38 -0200 Mauro Carvalho Chehab escreveu: > Em Tue, 08 Nov 2016 11:04:55 +0200 > Jani Nikula escreveu: > > > On Tue, 08 Nov 2016, Jani Nikula wrote: > > > On Mon, 07 Nov 2016, Mauro Carvalho Chehab > > > wrote: > > >> This series address a series of errors durin

Re: [PATCH 2/6] mm: workingset: turn shadow node shrinker bugs into warnings

2016-11-08 Thread Jan Kara
On Mon 07-11-16 14:07:37, Johannes Weiner wrote: > When the shadow page shrinker tries to reclaim a radix tree node but > finds it in an unexpected state - it should contain no pages, and > non-zero shadow entries - there is no need to kill the executing task > or even the entire system. Warn about

Re: [PATCH v2 2/2] mmc: sdhci-iproc: support standard byte register accesses

2016-11-08 Thread Adrian Hunter
On 01/11/16 18:37, Scott Branden wrote: > Add bytewise register accesses support for newer versions of IPROC > SDHCI controllers. > Previous sdhci-iproc versions of SDIO controllers > (such as Raspberry Pi and Cygnus) only allowed for 32-bit register > accesses. > > Signed-off-by: Srinath Mannam

Re: [PATCH] percpu: use notrace variant of preempt_disable/preempt_enable

2016-11-08 Thread Martin Schwidefsky
On Mon, 7 Nov 2016 12:27:16 -0500 Steven Rostedt wrote: > On Thu, 3 Nov 2016 14:58:38 +0100 > Heiko Carstens wrote: > > > Commit 345ddcc882d8 ("ftrace: Have set_ftrace_pid use the bitmap like > > events do") added a couple of this_cpu_read calls to the ftrace code. > > > > On x86 this is not a

Re: [PATCH 2/2] irqchip/gicv3-its: Test code for measuring Read-allocate

2016-11-08 Thread kbuild test robot
/0day-ci/linux/commits/Shanker-Donthineni/irqchip-gicv3-its-Test-code-for-measuring-Read-allocate/20161108-154723 base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core config: arm-multi_v7_defconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9

panic at rb_next when do pick_next_task_fair

2016-11-08 Thread 蒋雄伟(蒋冲)
Hi,all We encountered the following panic in 2.6.32 and 3.10.0: BUG: unable to handle kernel NULL pointer dereference at 0010 IP: [] rb_next+0x1/0x50 Call Trace: ? pick_next_task_fair+0x129/0x1d0 [] __schedule+0x12a/0x910 [] schedule+0x29/0x70 [] futex_wait_queue_me+0xc4/0x12

RE: [PATCH v4 1/2] ARC: IRQ: Do not use hwirq as virq and vice versa

2016-11-08 Thread Noam Camus
> From: Vineet Gupta [mailto:vineet.gup...@synopsys.com] > Sent: Tuesday, November 8, 2016 9:21 AM >I'm planning to merge this valid patch. Please look at arc mailing list for >more context ! >Can you please check if this doesn't break ur platform and/or requires a fixup. Ack by me -Noam

Re: [PATCH] clk: Free struct clk allocated during clk_hw_register()

2016-11-08 Thread Rajendra Nayak
On 11/08/2016 03:06 PM, Geert Uytterhoeven wrote: > Hi Rajendra, > > On Tue, Nov 8, 2016 at 9:23 AM, Rajendra Nayak wrote: >> With clk_hw_register() API we hide the struct clk from the caller >> and return an int error code instead, so the caller (clk provider) >> is not expected to use hw->clk

Re: [PATCH] mtd: bcm47xxsflash: use uncached MMIO access for BCM53573

2016-11-08 Thread Rafał Miłecki
On 8 November 2016 at 03:23, Brian Norris wrote: > On Mon, Aug 15, 2016 at 02:21:28PM +0200, Rafał Miłecki wrote: >> From: Rafał Miłecki >> >> BCM53573 is a new series of Broadcom's SoCs. It's based on ARM and uses >> this old ChipCommon-based flash access. Early tests resulted in flash >> corrup

[PATCH v5] PM/devfreq: add suspend frequency support

2016-11-08 Thread Lin Huang
Add suspend frequency support and if needed set it to the frequency obtained from the suspend opp (can be defined using opp-v2 bindings and is optional). Signed-off-by: Lin Huang --- Changes in v2: - use update_devfreq() instead devfreq_update_status() Changes in v3: - fix build error Changes in

Re: net/sctp: null-ptr-deref in sctp_inet_listen

2016-11-08 Thread Xin Long
On Tue, Nov 8, 2016 at 5:44 AM, Andrey Konovalov wrote: > Hi, > > I've got the following error report while running the syzkaller fuzzer: > > kasan: CONFIG_KASAN_INLINE enabled > kasan: GPF could be caused by NULL-ptr deref or user memory access > general protection fault: [#1] SMP KASAN > Mo

Re: [PATCH 3/6] lib: radix-tree: native accounting of exceptional entries

2016-11-08 Thread Jan Kara
On Mon 07-11-16 14:07:38, Johannes Weiner wrote: > The way the page cache is sneaking shadow entries of evicted pages > into the radix tree past the node entry accounting and tracking them > manually in the upper bits of node->count is fraught with problems. > > These shadow entries are marked in

Re: [PATCH 4/6] lib: radix-tree: check accounting of existing slot replacement users

2016-11-08 Thread Jan Kara
On Mon 07-11-16 14:07:39, Johannes Weiner wrote: > The bug in khugepaged (fixed in the first patch of this series) shows > that radix tree slot replacement is fragile; and it will become more > so when not only NULL<->!NULL transitions need to be accounted but > transitions from and to exceptional

Re: [PATCH 2/2] pinctrl: tegra: Add driver to configure voltage and power of io pads

2016-11-08 Thread Linus Walleij
On Mon, Nov 7, 2016 at 6:41 AM, Laxman Dewangan wrote: > On Saturday 05 November 2016 03:54 AM, Linus Walleij wrote: >> On Wed, Nov 2, 2016 at 10:09 AM, Laxman Dewangan () >>> On Tegra124, the IO power rail source is auto detected by SoC and hence >>> it is only require to configure in low po

RE: [PATCH v3] phy: rcar-gen3-usb2: add sysfs for usb role swap

2016-11-08 Thread Yoshihiro Shimoda
Hi, > From: Peter Chen > Sent: Tuesday, November 08, 2016 6:25 PM > > On Wed, Nov 02, 2016 at 03:47:12PM +0900, Yoshihiro Shimoda wrote: < snip > > > + /* If current and new mode is the same, this returns the error */ > > + if (is_host == new_mode_is_host) > > + return -EINVAL; > >

Re: linux-next: manual merge of the tty tree with the jc_docs tree

2016-11-08 Thread Greg KH
On Tue, Nov 08, 2016 at 04:30:13PM +1100, Stephen Rothwell wrote: > Hi Greg, > > Today's linux-next merge of the tty tree got a conflict in: > > Documentation/VGA-softcursor.txt > > between commits: > > 27641b953c54 ("Documentation/VGA-softcursor.txt: convert to ReST markup") > 9d85025b04

[PATCH] sched/deadline: Fix typo in a comment

2016-11-08 Thread Daniel Bristot de Oliveira
In the comment: /* * The task might have changed its scheduling policy to something * different than SCHED_DEADLINE (through switched_fromd_dl()). */ s/switched_fromd_dl/switched_from_dl/ Signed-off-by: Daniel Bristot de Oliveira Cc: Ingo Molnar Cc: Peter Zijl

[PATCH v2 07/23] staging: iio: tsl2583: remove redundant write to the control register in taos_probe()

2016-11-08 Thread Brian Masney
taos_probe() calls i2c_smbus_write_byte() to select the control register, however there are no subsequent calls to i2c_smbus_read_byte(). The write call is unnecessary and is removed by this patch. Verified that the driver still functions correctly using a TSL2581 hooked up to a Raspberry Pi 2. S

[PATCH v2 08/23] staging: iio: tsl2583: remove the FSF's mailing address

2016-11-08 Thread Brian Masney
Address warning from checkpatch: CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL. Signed-off-by: Brian Masney -

[PATCH v2 00/23] staging: iio: tsl2583: move out of staging

2016-11-08 Thread Brian Masney
The first 7 patches in this series contains version 2 of the patches 7-9 that I sent out on 2016-11-03. The only change is that the patches are split up further to make the code review easier. Patches 8-23 in this series are new and some of the highlights include: - Moved from a global lux table

[PATCH v2 10/23] staging: iio: tsl2583: unify function and variable prefix to tsl2583_

2016-11-08 Thread Brian Masney
Some functions and variables were prefixed with either taos, tsl258x or tsl2583. Change everything to use the tsl2583 prefix since that is the name of the .c file. The taos_settings member inside the taos_settings struct was renamed to als_settings. Signed-off-by: Brian Masney --- drivers/stagin

Re: [Intel-gfx] [PATCH v2] drm: move allocation out of drm_get_format_name()

2016-11-08 Thread Daniel Vetter
On Mon, Nov 07, 2016 at 07:38:25PM +0200, Jani Nikula wrote: > On Mon, 07 Nov 2016, Eric Engestrom wrote: > > On Monday, 2016-11-07 10:10:13 +0200, Jani Nikula wrote: > >> On Mon, 07 Nov 2016, Eric Engestrom wrote: > >> > Fixes: 90844f00049e9f42573fd31d7c32e8fd31d3fd07 > >> > > >> > drm: make

[PATCH v2 04/23] staging: iio: tsl2583: remove unnecessary chip status check in taos_get_lux

2016-11-08 Thread Brian Masney
taos_get_lux checks to see if the chip is in a working state. This check is not necessary since it is only called from tsl2583_read_raw and in_illuminance_calibrate_store (via taos_als_calibrate). The chip state is already checked by these functions. Signed-off-by: Brian Masney --- drivers/stagi

[PATCH v2 06/23] staging: iio: tsl2583: change current chip state from a tristate to a bool

2016-11-08 Thread Brian Masney
The current chip state is represented as a tristate (working, suspended, and unknown). The unknown state was not used. This patch changes the chip state so that it is now represented as a single boolean value (suspended). Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2583.c | 18 +

[PATCH v2 03/23] staging: iio: tsl2583: check if chip is suspended in in_illuminance_calibrate_store

2016-11-08 Thread Brian Masney
in_illuminance_calibrate_store() did not check to see if the chip is suspended. This patch adds the proper check. The return value from taos_als_calibrate() was also not checked in this function, so the proper check was also added while changes are being made here. Signed-off-by: Brian Masney ---

[PATCH v2 01/23] staging: iio: tsl2583: split out functionality of taos_chip_on()

2016-11-08 Thread Brian Masney
taos_chip_on() reads an eight member array called taos_config that contains the desired state of the chip's registers. Only four of the registers actually need to be written to. The four that do not need to be written to are for the {low,high} byte of the lower interrupt threshold and the {low,high

[PATCH v2 02/23] staging: iio: tsl2583: fix issue with changes to calibscale and int_time not being set on the chip

2016-11-08 Thread Brian Masney
When updating the in_illuminance_calibscale and in_illuminance_integration_time sysfs attributes, these values were not actually written to the chip. The chip would continue to use the old parameters. Extracted out tsl2583_set_als_gain() and tsl2583_set_als_time() functions that are now called when

[PATCH v2 05/23] staging: iio: tsl2583: remove unnecessary chip status checks in suspend/resume

2016-11-08 Thread Brian Masney
The device probing and the suspend/resume code checks a flag internal to the driver that determines whether or not the chip is in a working state. These checks are not needed. This patch removes the unnecessary checks. It will do no harm to the hardware if the chip is reinitialized if it is already

[PATCH v2 09/23] staging: iio: tsl2583: cleaned up logging

2016-11-08 Thread Brian Masney
There are several places in the code where the function name is hardcoded in the log message. Use the __func__ constant string to build the log message. This also clarifies some of the error messages to match the code and ensures that the correct priority is used since the message is already being

Re: [PATCH 1/1] pinctrl: st: st_pinconf_dbg_show wrong format string

2016-11-08 Thread Linus Walleij
On Sat, Nov 5, 2016 at 3:25 PM, Heinrich Schuchardt wrote: > function is defined as unsigned int. > So we need %u to print it. > > Signed-off-by: Heinrich Schuchardt Patch applied with Patrice's ACK. Yours, Linus Walleij

[PATCH v2 18/23] staging: iio: tsl2583: change tsl2583_als_calibrate() to return 0 on success

2016-11-08 Thread Brian Masney
tsl2583_als_calibrate() returns the newly computed gain_trim if the calibration was successful. This function is only called by in_illuminance_calibrate_store() and the return value inside that sysfs attribute is only checked to see if an error was returned. This patch changes tsl2583_als_calibrate

[PATCH v2 22/23] staging: iio: tsl2583: updated copyright and MODULE_AUTHOR

2016-11-08 Thread Brian Masney
Added Brian Masney's copyright to the header and to the MODULE_AUTHOR for all of the staging cleanups that has been done to this driver. Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2583.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/iio/l

[PATCH v2 11/23] staging: iio: tsl2583: fix alignment of #define values

2016-11-08 Thread Brian Masney
Most of the values in the #defines have their values aligned on a single column, but some do not. This changes the remaining defines to use consistent alignment with the majority to improve code readability. Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2583.c | 10 +- 1 f

Re: [PATCH 5/6] mm: workingset: switch shadow entry tracking to radix tree exceptional counting

2016-11-08 Thread Jan Kara
On Mon 07-11-16 14:07:40, Johannes Weiner wrote: > Currently, we track the shadow entries in the page cache in the upper > bits of the radix_tree_node->count, behind the back of the radix tree > implementation. Because the radix tree code has no awareness of them, > we rely on random subtleties thr

Re: [PATCH 1/1] pinctrl: st: st_pctl_dt_parse_groups simplify expression

2016-11-08 Thread Linus Walleij
On Sat, Nov 5, 2016 at 3:35 PM, Heinrich Schuchardt wrote: > for_each_property_of_node(pins, pp) checks that pp is not NULL. > So there is no need to check it inside the loop. > > Signed-off-by: Heinrich Schuchardt Patch applied with Patrice's ACK. Yours, Linus Walleij

[PATCH v2 20/23] staging: iio: tsl2583: don't assume an unsigned int is 32 bits

2016-11-08 Thread Brian Masney
in_illuminance_lux_table_store assumes that an unsigned int is 32 bits. Replace this with sizeof(unsigned int). Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2583.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/iio/light/tsl2583.c b/drivers/s

[PATCH v2 15/23] staging: iio: tsl2583: fix multiline comment syntax

2016-11-08 Thread Brian Masney
The definition of the tsl2583_device_lux struct has a series of single line comments. There are two other cases where the multiline comments did not have an initial blank line. Change these comments to use the proper multiline syntax. Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl

[PATCH v2 12/23] staging: iio: tsl2583: fix comparison between signed and unsigned integers

2016-11-08 Thread Brian Masney
Fixed warning found by make W=2: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2583.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/staging/iio/light/tsl2583.

Re: [PATCH v2 09/23] staging: iio: tsl2583: cleaned up logging

2016-11-08 Thread Joe Perches
On Tue, 2016-11-08 at 05:16 -0500, Brian Masney wrote: > There are several places in the code where the function name is > hardcoded in the log message. Use the __func__ constant string to build > the log message. This also clarifies some of the error messages to match > the code and ensures that t

[PATCH v2 21/23] staging: iio: tsl2583: move from a global to a per device lux table

2016-11-08 Thread Brian Masney
The driver contains a global lux table that can be updated via sysfs. Change this to a per device lux table so that multiple devices can be hooked up to the same system with different lux tables. There are 10 entries, plus 1 for the termination segment, set aside for the entries in the lux table.

[PATCH v2 16/23] staging: iio: tsl2583: updated code comment to match what the code does

2016-11-08 Thread Brian Masney
If channel 0 does not have any data, then the code sets the lux to zero. The corresponding comment says that the last value is returned. This updates the comment to correctly reflect what the code does. Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2583.c | 2 +- 1 file changed, 1

Re: [PATCH v3 1/2] x86/AMD: Fix cpu_llc_id for AMD Fam17h systems

2016-11-08 Thread Ingo Molnar
* Borislav Petkov wrote: > On Tue, Nov 08, 2016 at 07:31:45AM +0100, Ingo Molnar wrote: > > So the point I tried to make is that to people doing -stable > > backporting decisions this description you just gave is much more > > valuable than the previous changelog. > > Ok, how's that below? I've

[PATCH v2 19/23] staging: iio: tsl2583: remove unnecessary parentheses

2016-11-08 Thread Brian Masney
in_illuminance_lux_table_store() contains some unnecessary parentheses. This patch removes them since they provide no value. Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2583.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/iio/light/tsl25

[PATCH v2 14/23] staging: iio: tsl2583: combine sysfs documentation

2016-11-08 Thread Brian Masney
There are two separate files describing the tsl2583 sysfs attributes. Combine the two files into one. Updated the name of the sysfs attributes to match the current ABI. Signed-off-by: Brian Masney Suggested-by: Peter Meerwald-Stadler --- .../Documentation/light/sysfs-bus-iio-light-tsl2583 | 16

[PATCH v2 23/23] staging: iio: tsl2583: move out of staging

2016-11-08 Thread Brian Masney
Move tsl2580, tsl2581, tsl2583 driver out of staging into mainline. Signed-off-by: Brian Masney --- .../ABI/testing/sysfs-bus-iio-light-tsl2583| 20 + drivers/iio/light/Kconfig | 7 + drivers/iio/light/Makefile | 1 + drivers/iio/ligh

Re: [PATCH 1/4] pinctrl: Introduce generic #pinctrl-cells and pinctrl_parse_index_with_args

2016-11-08 Thread Linus Walleij
On Mon, Nov 7, 2016 at 4:26 PM, Tony Lindgren wrote: > * Linus Walleij [161104 14:50]: >> +struct of_phandle_args; >> + >> #ifdef CONFIG_OF >> >> Let's see if it works! > > OK so do we know now? It seems there was one more email > about it but it may have been without it. I haven't seen anythi

[PATCH v2 13/23] staging: iio: tsl2583: change newlines to improve readability

2016-11-08 Thread Brian Masney
Add and remove newlines to improve code readability in preparation for moving the driver out of staging. Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2583.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/staging/iio/light/tsl2583.c b/dr

[PATCH v2 17/23] staging: iio: tsl2583: moved code block inside else statement

2016-11-08 Thread Brian Masney
The check for ch1lux > ch0lux inside tsl2583_get_lux is only valid if the ratio is not equal to zero. Move the code block inside the else statement. This does away with the need to initialize the variables to zero. Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2583.c | 23

Re: [PATCH] sched/rt: RT_RUNTIME_GREED sched feature

2016-11-08 Thread Juri Lelli
Hi Daniel, On 07/11/16 14:51, Daniel Bristot de Oliveira wrote: > On 11/07/2016 11:31 AM, Tommaso Cucinotta wrote: [...] > > -) only issue might be that, if a non-RT task wakes up after the > > unthrottle, it will have to wait, but worst-case it will have a chance > > in the next throttling wind

Re: [PATCH v4 1/2] cpuid: Add a helper in scattered.c to return cpuid leaf info

2016-11-08 Thread Borislav Petkov
On Tue, Nov 08, 2016 at 04:52:27PM +0800, He Chen wrote: > Some sparse cpuid leafs are gathered in a fake leaf to save size of s/cpuid/CPUID/ > x86_capability array in current code, but sometimes, kernel or other > modules (e.g. KVM cpuid enumeration) may need actual hardware leaf > information.

Re: [PATCH v4 2/2] cpuid: add AVX512_4VNNIW and AVX512_4FMAPS instructions support

2016-11-08 Thread Borislav Petkov
On Tue, Nov 08, 2016 at 04:52:28PM +0800, He Chen wrote: > Add two new AVX512 instructions support for KVM guest. > > AVX512_4VNNIW: > Vector instructions for deep learning enhanced word variable precision. > > AVX512_4FMAPS: > Vector instructions for deep learning floating-point single precision

Re: [PATCH 6/6] mm: workingset: restore refault tracking for single-page files

2016-11-08 Thread Jan Kara
On Mon 07-11-16 14:07:41, Johannes Weiner wrote: > Shadow entries in the page cache used to be accounted behind the radix > tree implementation's back in the upper bits of node->count, and the > radix tree code extending a single-entry tree with a shadow entry in > root->rnode would corrupt that co

Re: [PATCH 3.12 69/72] Revert "fix minor infoleak in get_user_ex()"

2016-11-08 Thread Greg KH
On Mon, Nov 07, 2016 at 08:45:59AM -0800, Linus Torvalds wrote: > So a patch something like this might be a safe way to fix the > potential infoleak in older kernels. > > THIS IS UNTESTED. It's a very obvious patch, though, so if it compiles > it probably works. It just initializes the output vari

Re: [PATCH] clk: Free struct clk allocated during clk_hw_register()

2016-11-08 Thread Rajendra Nayak
On 11/08/2016 03:34 PM, Rajendra Nayak wrote: > > > On 11/08/2016 03:06 PM, Geert Uytterhoeven wrote: >> Hi Rajendra, >> >> On Tue, Nov 8, 2016 at 9:23 AM, Rajendra Nayak wrote: >>> With clk_hw_register() API we hide the struct clk from the caller >>> and return an int error code instead, so th

[PATCH 2/2] 32-bit ABI: introduce ARCH_32BIT_OFF_T config option

2016-11-08 Thread Yury Norov
All new 32-bit architectures should have 64-bit off_t type, but existing architectures has 32-bit ones. To handle it, new config option is added to arch/Kconfig that defaults ARCH_32BIT_OFF_T to be disabled for non-64 bit architectures. All existing 32-bit architectures enable it explicitly here.

Re: [PATCH 2/2] pinctrl: tegra: Add driver to configure voltage and power of io pads

2016-11-08 Thread Laxman Dewangan
On Tuesday 08 November 2016 03:45 PM, Linus Walleij wrote: On Mon, Nov 7, 2016 at 6:41 AM, Laxman Dewangan wrote: On Saturday 05 November 2016 03:54 AM, Linus Walleij wrote: On Wed, Nov 2, 2016 at 10:09 AM, Laxman Dewangan () On Tegra124, the IO power rail source is auto detected by So

Re: [PATCH] mm: only enable sys_pkey* when ARCH_HAS_PKEYS

2016-11-08 Thread Russell King - ARM Linux
On Tue, Nov 08, 2016 at 10:30:42AM +0100, Heiko Carstens wrote: > Two architectures (arm, mips) have wired them up and thus allocated system > call numbers, even though they don't have ARCH_HAS_PKEYS set. Which seems a > bit pointless. I don't think it's pointless at all. First, read the LWN arti

[PATCH] drbd: Fix kernel_sendmsg() usage

2016-11-08 Thread Richard Weinberger
Don't pass a size larger than iov_len to kernel_sendmsg(). Otherwise it will cause a NULL pointer deref when kernel_sendmsg() returns with rv < size. Although the issue exists since day 0, only on non-ancient kernels that contain change 57be5bdad759 ("ip: convert tcp_sendmsg() to iov_iter primitiv

Re: linux-next: manual merge of the tip tree with the drm-intel tree

2016-11-08 Thread Daniel Vetter
On Tue, Nov 08, 2016 at 03:25:41PM +1100, Stephen Rothwell wrote: > Hi all, > > FIXME: Add owner of second tree to To: >Add author(s)/SOB of conflicting commits. > > Today's linux-next merge of the tip tree got a conflict in: > > drivers/gpu/drm/i915/i915_gem_shrinker.c > > between co

Re: [PATCH v3 1/3] thinkpad_acpi: Move tablet detection into separate function

2016-11-08 Thread Henrique de Moraes Holschuh
On Mon, 07 Nov 2016, Lyude wrote: > @@ -3117,6 +3120,34 @@ static const struct tpacpi_quirk > tpacpi_hotkey_qtable[] __initconst = { > typedef u16 tpacpi_keymap_entry_t; > typedef tpacpi_keymap_entry_t tpacpi_keymap_t[TPACPI_HOTKEY_MAP_LEN]; > > +static int > +hotkey_init_tablet_mode(void) > +

Re: [RFC v2 1/8] sched/tune: add detailed documentation

2016-11-08 Thread Patrick Bellasi
On 04-Nov 15:16, Viresh Kumar wrote: > On 27-10-16, 18:41, Patrick Bellasi wrote: > > +This last requirement is especially important if we consider that > > schedutil can > > +potentially replace all currently available CPUFreq policies. Since > > schedutil > > +is event based, as opposed to the

Re: [PATCH v7 0/3] drm: add explict fencing

2016-11-08 Thread Chris Wilson
On Tue, Nov 08, 2016 at 03:54:47PM +0900, Gustavo Padovan wrote: > From: Gustavo Padovan > > Hi, > > This is yet another version of the DRM fences patches. Please refer > to the cover letter[1] in a previous version to check for more details. Explicit fencing is not a superset of the implicit f

Re: [PATCH 1/3] phy: fix semicolon.cocci warnings

2016-11-08 Thread Vivek Gautam
Hi Kishon, On Thu, Oct 20, 2016 at 12:23 PM, Vivek Gautam wrote: > Remove unneeded semicolon. > > Generated by: coccinellery/semicolon/semicolon.cocci > > Signed-off-by: Vivek Gautam > Cc: Kishon Vijay Abraham I > --- Gentle ping. Do you plan to pull in 3 patches in this series ? > drivers/p

Re: [Ksummit-discuss] Including images on Sphinx documents

2016-11-08 Thread Mauro Carvalho Chehab
Em Mon, 7 Nov 2016 09:05:05 -0800 Josh Triplett escreveu: > On Mon, Nov 07, 2016 at 09:46:48AM -0200, Mauro Carvalho Chehab wrote: > > That's said, PNG also doesn't seem to work fine on Sphinx 1.4.x. > > > > On my tests, I installed *all* texlive extensions on Fedora 24, to > > be sure that the

Re: [PATCH] drm: tda998x: mali-dp: hdlcd: refactor connector registration

2016-11-08 Thread Russell King - ARM Linux
On Tue, Nov 08, 2016 at 10:25:52AM +0100, Daniel Vetter wrote: > Hm, I entirely missed that part of the troubles. Anyway, if you all agree > on a patch I certainly won't block it, feel free to merge through suitable > trees (or I can smash it into drm-misc if that's wanted). I think those who are

Re: [PATCH v4 3/3] thinkpad_acpi: Add support for X1 Yoga (2016) Tablet Mode

2016-11-08 Thread Henrique de Moraes Holschuh
On Mon, 07 Nov 2016, Lyude wrote: > For whatever reason, the X1 Yoga doesn't support the normal method of > querying for tablet mode. Instead of providing the MHKG method under the > hotkey handle, we're instead given the CMMD method under the EC handle. > Values on this handle are either 0x1, lapt

Re: [PATCH v3 1/2] x86/AMD: Fix cpu_llc_id for AMD Fam17h systems

2016-11-08 Thread Borislav Petkov
On Tue, Nov 08, 2016 at 11:29:09AM +0100, Ingo Molnar wrote: > Looks good to me! Please also update the second patch with meta > information and I can apply them. What exactly do you want to have there? I think the commit message is pretty explanatory. -- Regards/Gruss, Boris. SUSE Linux Gm

Re: [PATCH v9 1/6] x86/platform/p2sb: New Primary to Sideband bridge support driver for Intel SOC's

2016-11-08 Thread Mika Westerberg
On Tue, Nov 08, 2016 at 04:57:18PM +0800, Tan Jui Nee wrote: > From: Andy Shevchenko > > There is already one and at least one more user coming which > require an access to Primary to Sideband bridge (P2SB) in order > to get IO or MMIO bar hidden by BIOS. > Create a driver to access P2SB for x86

Re: [PATCH v9 2/6] mfd: lpc_ich: Rename lpc-ich driver

2016-11-08 Thread Mika Westerberg
On Tue, Nov 08, 2016 at 04:57:19PM +0800, Tan Jui Nee wrote: > This patch follows the example of mfd/wm831x to rename the driver > from "lpc_ich" to "lpc_ich_core". > > Signed-off-by: Tan Jui Nee Reviewed-by: Mika Westerberg

Re: [PATCH v9 3/6] x86/intel-ivi: Add Intel In-Vehicle Infotainment (IVI) systems used in cars support

2016-11-08 Thread Mika Westerberg
On Tue, Nov 08, 2016 at 04:57:20PM +0800, Tan Jui Nee wrote: > Add support for non ACPI system, such as system that uses Advanced Boot > Loader (ABL) whereby a platform device has to be created in order to bind > with PINCTRL/GPIO. > > At the moment, Intel Apollo Lake SoC requires P2SB driver to h

RE: [PATCH v2 3/3] clocksource: Add clockevent support to NPS400 driver

2016-11-08 Thread Noam Camus
> From: Daniel Lezcano [mailto:daniel.lezc...@linaro.org] > Sent: Tuesday, November 1, 2016 10:02 PM ... >Assuming cpu0 and cpu1 are sibling, does >taskset 0x1 time sleep 2 & taskset 0x2 time sleep 3 I will use 16,17 instead of 0,1 >give a correct result without a dmesg log ? [root@192.168.8.2 /

Re: [PATCH v9 4/6] mfd: move enum lpc_chipsets into lpc_ich.h

2016-11-08 Thread Mika Westerberg
On Tue, Nov 08, 2016 at 04:57:21PM +0800, Tan Jui Nee wrote: > Move the enum's definition into a standalone header file which can be used > wherever its definition is needed. > > Signed-off-by: Tan Jui Nee Reviewed-by: Mika Westerberg

Re: [PATCH v9 5/6] mfd: lpc_ich: Add Device IDs for Intel Apollo Lake PCH

2016-11-08 Thread Mika Westerberg
On Tue, Nov 08, 2016 at 04:57:22PM +0800, Tan Jui Nee wrote: > Adding Intel codename Apollo Lake platform device IDs for PCH. > > Signed-off-by: Tan Jui Nee > Acked-for-MFD-by: Lee Jones Reviewed-by: Mika Westerberg

Re: [PATCH v7 1/3] drm/fence: add in-fences support

2016-11-08 Thread Daniel Vetter
On Tue, Nov 08, 2016 at 03:54:48PM +0900, Gustavo Padovan wrote: > From: Gustavo Padovan > > There is now a new property called IN_FENCE_FD attached to every plane > state that receives sync_file fds from userspace via the atomic commit > IOCTL. > > The fd is then translated to a fence (that may

Re: [PATCH 2/3] thinkpad_acpi: Don't repeat ourselves in hotkey_init_tablet_mode()

2016-11-08 Thread Henrique de Moraes Holschuh
On Mon, 07 Nov 2016, Lyude wrote: > There's no need to have multiple copies of the logic we use for checking > whether or not we're in tablet mode, so just use > hotkey_get_tablet_mode() when checking the initial state in > hotkey_init_tablet_mode(). ... > @@ -3130,13 +3130,16 @@ hotkey_init_tabl

Re: [RFC][PATCH] mm: merge as soon as possible when pcp alloc/free

2016-11-08 Thread Mel Gorman
On Mon, Nov 07, 2016 at 03:45:32PM -0800, Andrew Morton wrote: > On Sat, 5 Nov 2016 15:57:55 +0800 Xishi Qiu wrote: > > > Usually the memory of android phones is very small, so after a long > > running, the fragment is very large. Kernel stack which called by > > alloc_thread_stack_node() usually

Re: [PATCH v4] drm: bridge: add DesignWare HDMI I2S audio support

2016-11-08 Thread Russell King - ARM Linux
On Tue, Nov 08, 2016 at 01:00:57AM +, Kuninori Morimoto wrote: > > From: Kuninori Morimoto > > Current dw-hdmi is supporting sound via AHB bus, but it has > I2S audio feature too. This patch adds I2S audio support to dw-hdmi. > This HDMI I2S is supported by using ALSA SoC common HDMI encoder

[PATCH 1/2] compat ABI: use non-compat openat and open_by_handle_at variants

2016-11-08 Thread Yury Norov
The only difference is that non-compat version forces O_LARGEFILE, and it should be the default behaviour for all architectures, as we don't support 32-bit off_t. The only exception is tile32, that continues with compat version of syscalls. Signed-off-by: Yury Norov Acked-by: Arnd Bergmann Acked

[Resend PATCH v2 0/2] ABI: handle 32-bit off_t for 32-bit and compat ABIs

2016-11-08 Thread Yury Norov
32-bit off_t is supported only for old 32-bit and compat ABIs. New ABIs are 64-bit length only. This patchset makes 64-bit length the default for off_t, and reverts it for old architectures where needed. It does not change the behaviour of existing code. First patch makes all compat users of gener

Re: [PATCH v9 6/6] mfd: lpc_ich: Add support for Intel Apollo Lake GPIO pinctrl in non-ACPI system

2016-11-08 Thread Mika Westerberg
On Tue, Nov 08, 2016 at 04:57:23PM +0800, Tan Jui Nee wrote: > This driver uses the P2SB hide/unhide mechanism cooperatively > to pass the PCI BAR address to the gpio platform driver. > > Signed-off-by: Tan Jui Nee Reviewed-by: Mika Westerberg

Re: [PATCH] ARM: tegra: nyan: Mark all USB ports as host

2016-11-08 Thread Jon Hunter
On 08/11/16 11:07, Thierry Reding wrote: > * PGP Signed by an unknown key > > On Tue, Nov 08, 2016 at 09:47:42AM +, Jon Hunter wrote: >> >> On 08/11/16 08:54, Peter De Schrijver wrote: >>> On Mon, Nov 07, 2016 at 02:09:31PM +, Jon Hunter wrote: On 07/11/16 13:28, Thierry Reding

Re: [PATCH] Fix: disable sys_membarrier when nohz_full is enabled

2016-11-08 Thread Mathieu Desnoyers
- On Nov 7, 2016, at 3:03 PM, Paul E. McKenney paul...@linux.vnet.ibm.com wrote: > On Mon, Nov 07, 2016 at 06:10:14PM +, Mathieu Desnoyers wrote: >> >> - On Nov 7, 2016, at 1:06 PM, Paul E. McKenney paul...@linux.vnet.ibm.com >> wrote: >> >> > On Mon, Nov 07, 2016 at 05:08:59PM +000

[PATCH v4] phy: rcar-gen3-usb2: add sysfs for usb role swap

2016-11-08 Thread Yoshihiro Shimoda
This patch adds sysfs "role" for usb role swap. This parameter can be read and write. If you use this file as the following, you can swap the usb role. For example: 1) Connect a usb cable using 2 Salvator-x boards 2) On A-Device (ID pin is low), you input the following command: # echo periphe

Re: [PATCH] MIPS: R2-on-R6 emulation bugfix of BLEZL and BGTZL instructions

2016-11-08 Thread Maciej W. Rozycki
On Mon, 7 Nov 2016, Leonid Yegoshin wrote: > MIPS R2 emulation doesn't take into account that BLEZL and BGTZL instructions > require register RT = 0. If it is not zero it can be some legitimate MIPS R6 > instruction. Well, it *is* rather than just can be -- one of BLEZC/BGEZC/BGEC or BGTZC/BLTZ

[PATCH] ARC: [plat-eznps] set default baud for early console

2016-11-08 Thread Noam Camus
From: Noam Camus For CONFIG_SERIAL_EARLYCON we need 800MHz for NPS SoC The early console driver uses BASE_BAUD (and not using dtb) and default of 50MHz is good for NPS SoC. Signed-off-by: Noam Camus --- arch/arc/kernel/devtree.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff

Re: [PATCH] mm: only enable sys_pkey* when ARCH_HAS_PKEYS

2016-11-08 Thread Heiko Carstens
On Tue, Nov 08, 2016 at 10:41:12AM +, Russell King - ARM Linux wrote: > On Tue, Nov 08, 2016 at 10:30:42AM +0100, Heiko Carstens wrote: > > Two architectures (arm, mips) have wired them up and thus allocated system > > call numbers, even though they don't have ARCH_HAS_PKEYS set. Which seems a

Re: [PATCH] media: fix uninitialized variable warning in dib0700_rc_urb_completion()

2016-11-08 Thread Sean Young
On Mon, Nov 07, 2016 at 08:41:12AM -0700, Shuah Khan wrote: > Fix the following uninitialized variable compiler warning: > > drivers/media/usb/dvb-usb/dib0700_core.c: In function > ‘dib0700_rc_urb_completion’: > drivers/media/usb/dvb-usb/dib0700_core.c:763:2: warning: ‘protocol’ may be > used u

Re: [PATCH] ARM: tegra: nyan: Mark all USB ports as host

2016-11-08 Thread Thierry Reding
On Tue, Nov 08, 2016 at 09:47:42AM +, Jon Hunter wrote: > > On 08/11/16 08:54, Peter De Schrijver wrote: > > On Mon, Nov 07, 2016 at 02:09:31PM +, Jon Hunter wrote: > >> > >> On 07/11/16 13:28, Thierry Reding wrote: > >>> * PGP Signed by an unknown key > >>> > >>> On Sun, Sep 18, 2016 at 1

Re: [PATCH] PCI: create revision file in sysfs

2016-11-08 Thread Emil Velikov
[Dropping Jammy since his email bounces] On 1 November 2016 at 15:47, Alex Deucher wrote: > On Tue, Nov 1, 2016 at 11:42 AM, Emil Velikov > wrote: >> From: Emil Velikov >> >> Currently the revision isn't available via sysfs/libudev thus if one >> wants to know the value they need to read throu

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