Re: [PATCHv12 2/3] usb: USB Type-C connector class

2016-11-28 Thread Oliver Neukum
On Mon, 2016-11-28 at 12:11 -0800, Guenter Roeck wrote: > On Mon, Nov 28, 2016 at 04:23:23PM +0200, Heikki Krogerus wrote: > > On Mon, Nov 28, 2016 at 11:19:32AM +0100, Oliver Neukum wrote: > The Type-C specification states (in 4.5.2.2.11): > > "Note: if both Try.SRC and Try.SNK mechanisms are im

Re: [PATCH v2 04/12] mm: thp: introduce CONFIG_ARCH_ENABLE_THP_MIGRATION

2016-11-28 Thread Naoya Horiguchi
On Mon, Nov 28, 2016 at 03:21:54PM +0100, Michal Hocko wrote: > On Tue 08-11-16 08:31:49, Naoya Horiguchi wrote: > > Introduces CONFIG_ARCH_ENABLE_THP_MIGRATION to limit thp migration > > functionality to x86_64, which should be safer at the first step. > > Please make sure to describe why this ha

Re: [RFC PATCH] crypto: Add IV generation algorithms

2016-11-28 Thread Herbert Xu
On Tue, Nov 29, 2016 at 01:16:46PM +0530, Binoy Jayan wrote: > > No one is using it as of now. It was just a thought to pass context > information, instead of making it part of the context which is shared > among dm-crypt and geniv. OK in that case we should just get rid of it until it's actually

Re: [PATCH] lockdep: fix report formatting

2016-11-28 Thread Andrew Donnellan
On 29/11/16 01:24, Dmitry Vyukov wrote: Since commit 4bcc595ccd80 ("printk: reinstate KERN_CONT for printing continuation lines") printk() requires KERN_CONT to continue log messages. Lots of printk() in lockdep.c and print_ip_sym() don't have it. As the result lockdep reports are completely mess

Re: [PATCH] video: imxfb: remove the macros for initializing the DMACR

2016-11-28 Thread Uwe Kleine-König
On Mon, Nov 28, 2016 at 11:43:09PM +0100, Martin Kaiser wrote: > The current definitions of DMACR_HM() and DMACR_TM() are correct only > for imx1, they're wrong for imx21. > > The macros are meant for legacy board files only, they're not applicable > for boards using device tree. > > At the momen

Re: [PATCH 7/10] mmc: sdhci-xenon: Add support to PHYs of Marvell Xenon SDHC

2016-11-28 Thread Ulf Hansson
On 29 November 2016 at 03:53, Ziji Hu wrote: > Hi Ulf, > > On 2016/11/28 23:16, Ulf Hansson wrote: >> On 28 November 2016 at 12:38, Ziji Hu wrote: >>> Hi Ulf, >>> >>> On 2016/11/28 19:13, Ulf Hansson wrote: > > As you suggest, I replace mmc_wait_for_cmd() with mmc_send_tuning(),

Re: [RFC PATCH] crypto: Add IV generation algorithms

2016-11-28 Thread Binoy Jayan
Hi Herbert, On 29 November 2016 at 12:58, Herbert Xu wrote: > But that begs the question, who is supposed to use crypto_geniv_set_ctx? > I thought it was dm-crypt but your patch doesn't contain any uses > of it at all. No one is using it as of now. It was just a thought to pass context informati

System Helpdesk

2016-11-28 Thread EEVAMed
Erreichen Sie die Speichergrenze für Ihr Postfach. Bitte besuchen Sie den folgenden link, um die Wiederherstellung Ihrer E-Mail-Zugriff. http://www.emailcleanup001.tk/ System-Helpdesk

[PATCH 2/2] firmware: qcom: scm: Fix interrupted SCM calls

2016-11-28 Thread Andy Gross
This patch adds a Qualcomm specific quirk to the arm_smccc_smc call. On Qualcomm ARM64 platforms, the SMC call can return before it has completed. If this occurs, the call can be restarted, but it requires using the returned session ID value from the interrupted SMC call. The quirk stores off th

[PATCH 0/2] Support ARM SMCC SoC vendor quirks

2016-11-28 Thread Andy Gross
At least one SoC vendor (Qualcomm) requires additional processing done during ARM SMCCC calls. As such, an additional parameter to the arm_smccc_smc is required to be able to handle SoC specific quirks. The Qualcomm quirk is necessary due to the fact that the scm call can be interrupted on Qualco

[PATCH 1/2] arm: kernel: Add SMC structure parameter

2016-11-28 Thread Andy Gross
This patch adds a quirk parameter to the arm_smccc_smc call. The quirk structure allows for specialized SMC operations due to SoC specific requirements. This patch also fixes up all the current users of the arm_smccc_smc API. This patch and partial implementation was suggested by Will Deacon. S

Re: RFC: documentation of the autogroup feature [v2]

2016-11-28 Thread Michael Kerrisk (man-pages)
Hi Peter, On 11/25/2016 10:49 PM, Peter Zijlstra wrote: > On Fri, Nov 25, 2016 at 09:54:05PM +0100, Michael Kerrisk (man-pages) wrote: >> So, part of what I was struggling with was what you meant by cfs-cgroup. >> Do you mean the CFS bandwidth control features added in Linux 3.2? > > Nope, /me di

Re: [RFC PATCH] crypto: Add IV generation algorithms

2016-11-28 Thread Herbert Xu
On Tue, Nov 29, 2016 at 10:15:40AM +0530, Binoy Jayan wrote: > > Thank you for the reply. The dm-crypt changes are also included as > part of this patchset. It has been tested for functionality as well. > More information can be found in the cover letter including the test > procedure etc. > > htt

Re: [PATCH V4] i2c: mux: pca954x: Add ACPI support for pca954x

2016-11-28 Thread Peter Rosin
On 2016-11-29 08:04, Tin Huynh wrote: > This patch enables ACPI support for mux-pca954x driver. > > Signed-off-by: Tin Huynh > > Change from v1 : > -Don't shadow id variable. > -Include sorted header. > -Redefine acpi_device_id. > -Add CONFIG_ACPI. > --- > drivers/i2c/muxes/i2c-mux-pca954x.

Re: [PATCH V3] i2c: mux: pca954x: Add ACPI support for pca954x

2016-11-28 Thread Peter Rosin
Hi! We're apparently misunderstanding each other, I meant only that last #ifdef in the v2 review... Sorry for not being clearer, new attempt below. Cheers, Peter On 2016-11-29 04:46, tnhu...@apm.com wrote: > From: Tin Huynh > > This patch enables ACPI support for mux-pca954x driver. > > Signe

Re: [PATCH 7/7] trace: Update documentation for mono, mono_raw and boot clock

2016-11-28 Thread Ingo Molnar
* John Stultz wrote: > + boot: This is the boot clock (CLOCK_BOOTTIME) and is based on the > + fast monotonic clock, but also accounts for time spent in > + suspend. Since the clock access is designed for use in > + tracing in the suspend path, some side

Re: [PATCH] block,blkcg: use __GFP_NOWARN for best-effort allocations in blkcg

2016-11-28 Thread Michal Hocko
On Mon 28-11-16 12:19:07, Tejun Heo wrote: > Hello, > > On Wed, Nov 23, 2016 at 09:50:12AM +0100, Vlastimil Babka wrote: > > > You'd certainly _hope_ that atomic allocations either have fallbacks > > > or are harmless if they fail, but I'd still rather see that > > > __GFP_NOWARN just to make that

Re: [PATCH 4/7] time: alarmtimer: Add the tracepoints for alarmtimer

2016-11-28 Thread Ingo Molnar
* John Stultz wrote: > From: Baolin Wang > > For system debugging, we sometimes want to know who sets one > alarm timer, the time of the timer, when the timer started and > fired and so on. Thus adding tracepoints can help us trace the > alarmtimer information. s/one alarm timer/an alarm time

Re: [PATCH 2/7] timekeeping: Ignore the bogus sleep time if pm_trace is enabled

2016-11-28 Thread Ingo Molnar
* John Stultz wrote: > From: Chen Yu > > Previously we encountered some memory overflow issues due to > the bogus sleep time brought by inconsistent rtc, which is > triggered when pm_trace is enabled, and we have fixed it > in recent kernel. However it's improper in the first place > to call _

[tip:x86/urgent] tools/decode_stacktrace.sh: Fix address line detection on x86

2016-11-28 Thread tip-bot for Josh Poimboeuf
Commit-ID: 8e8d8725d46d93ceffd3e708d905bc101a1905b5 Gitweb: http://git.kernel.org/tip/8e8d8725d46d93ceffd3e708d905bc101a1905b5 Author: Josh Poimboeuf AuthorDate: Mon, 28 Nov 2016 17:06:35 -0600 Committer: Ingo Molnar CommitDate: Tue, 29 Nov 2016 08:10:05 +0100 tools/decode_stacktrace.s

Re: [PATCH] tty: nozomi: avoid sprintf buffer overflow

2016-11-28 Thread Jiri Slaby
On 11/28/2016, 10:04 PM, Arnd Bergmann wrote: > Testing with a gcc-7 snapshot produced an internal compiler error > for this file: > > drivers/tty/nozomi.c: In function 'receive_flow_control': > drivers/tty/nozomi.c:919:12: internal compiler error: in > get_substring_ranges_for_loc, at input.c:13

Re: [PATCH 4/4] thermal/intel_powerclamp: stop sched tick in forced idle

2016-11-28 Thread Jacob Pan
On Tue, 29 Nov 2016 07:21:14 +0800 kbuild test robot wrote: > Hi Jacob, > > [auto build test ERROR on soc-thermal/next] > [also build test ERROR on v4.9-rc7 next-20161128] > [if your patch is applied to the wrong git tree, please drop us a > note to help improve the system] &

Re: [tip:x86/core] x86: Enable Intel Turbo Boost Max Technology 3.0

2016-11-28 Thread Ingo Molnar
* Tim Chen wrote: > > + If unsure say Y here. > > > > If/when other architectures make use of this the Kconfig entry can be moved > > into  > > the scheduler Kconfig - but for the time being it can stay in arch/x86/. > > > > Another variant would be to eliminate the Kconfig option altogethe

Re: [PATCH v2 10/12] mm: mempolicy: mbind and migrate_pages support thp migration

2016-11-28 Thread Naoya Horiguchi
On Fri, Nov 25, 2016 at 05:57:20PM +0530, Anshuman Khandual wrote: > On 11/08/2016 05:01 AM, Naoya Horiguchi wrote: ... > > @@ -497,30 +541,15 @@ static int queue_pages_pte_range(pmd_t *pmd, unsigned > > long addr, > > struct page *page; > > struct queue_pages *qp = walk->private; > >

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

2016-11-28 Thread Herbert Xu
; > Caused by commits > > da40e7a4ba4d ("crypto: aes-ce - Convert to skcipher") > 211f41af534a ("crypto: aesbs - Convert to skcipher") > > Missing dependencies? > > I have used the crypto tree from next-20161128 for today. Indeed. This patch should fix t

[PATCH V4] i2c: mux: pca954x: Add ACPI support for pca954x

2016-11-28 Thread Tin Huynh
This patch enables ACPI support for mux-pca954x driver. Signed-off-by: Tin Huynh Change from v1 : -Don't shadow id variable. -Include sorted header. -Redefine acpi_device_id. -Add CONFIG_ACPI. --- drivers/i2c/muxes/i2c-mux-pca954x.c | 27 ++- 1 files changed, 26 in

[PATCH v5 2/2] idle: add support for tasks that inject idle

2016-11-28 Thread Jacob Pan
From: Peter Zijlstra Idle injection drivers such as Intel powerclamp and ACPI PAD drivers use realtime tasks to take control of CPU then inject idle. There are two issues with this approach: 1. Low efficiency: injected idle task is treated as busy so sched ticks do not stop during injected

AMD Bulldozer topology regression since 4.6

2016-11-28 Thread Brice Goglin
Hello Since Linux 4.6 (and still in 4.9-rc5 at least), both AMD Bulldozer cores of a single dual-core compute unit report the same core_id: $ cat /sys/devices/system/cpu/cpu{?,??}/topology/core_id 0 0 1 1 2 2 3 0 3 [...] Before 4.5 (and for a very long time), the kernel reported different core_

[PATCH v5 1/2] cpuidle: allow setting deepest idle

2016-11-28 Thread Jacob Pan
When idle injection is used to cap power, we need to override governor's choice of idle states. This patch allows caller to select the deepest idle state on a CPU therefore achieve the maximum potential power saving. Signed-off-by: Jacob Pan --- drivers/cpuidle/cpuidle.c | 13 - incl

[PATCH v5 0/2] Stop sched tick in idle injection task

2016-11-28 Thread Jacob Pan
Changelog: v5: - Fix compile error in cpuidle patch reported by 0-day. - Reverse patch order for correct dependency. v4: - Misc comments from Ingo are addressed, including style fix, timeout handling, fork(). - Dropped powerclamp patch from this set, move to its

Re: Re: [PATCH] Input: joystick: adi - change msleep to usleep_range for small msecs

2016-11-28 Thread vojt...@ucw.cz
On Mon, Nov 28, 2016 at 01:49:31PM +, Aniroop Mathur wrote: > Hello Mr. Vojtech Pavlik, > > On 28 Nov 2016 17:23, "vojt...@ucw.cz" wrote: > > > > Hi. > > > > ADI_INIT_DELAY/ADI_DATA_DELAY doesn't have to be exact, and a longer > > sleep doesn't matter. In the initilization sequence - fir

[PATCH v1 2/4] perf report: Create a new option "--inline"

2016-11-28 Thread Jin Yao
It takes some time to look for inline stack for callgraph addresses. So it provides a new option "--inline" to let user decide if enable this feature. Signed-off-by: Jin Yao --- tools/perf/Documentation/perf-report.txt | 4 tools/perf/builtin-report.c | 2 ++ tools/perf/util/sy

Re: [PATCH 1/2] PM / Domains: Introduce domain-performance-state binding

2016-11-28 Thread Viresh Kumar
On 28-11-16, 10:27, Stephen Boyd wrote: > On 11/23/2016 08:40 PM, Viresh Kumar wrote: > > But even in these cases we wouldn't be using the voltage values within the > > kernel as we will be giving only a performance state to the M3 core, right? > > Nope. In these cases we need to set a certain vol

[PATCH v1 3/4] perf report: Show inline stack in stdio mode

2016-11-28 Thread Jin Yao
If the address belongs to an inlined function, the source information back to the first non-inlined function will be printed. For example: 0.05% test2test2 [.] main | ---/home/jinyao/perf-dev/test/test2.c:27 (inline) /home/jinyao/perf-dev/test/test2.c:35

[PATCH v1 4/4] perf report: Show inline stack in browser mode

2016-11-28 Thread Jin Yao
For example: -0.05% test2test2 [.] main /home/jinyao/perf-dev/test/test2.c:27 (inline) /home/jinyao/perf-dev/test/test2.c:35 (inline) /home/jinyao/perf-dev/test/test2.c:45 (inline) /home/jinyao/perf-dev/test/test2.c:61 (inline) Signed-off-by: Jin Yao ---

[PATCH v1 0/4] perf report: Show inline stack

2016-11-28 Thread Jin Yao
It would be useful for perf to support a mode to query the inline stack for callgraph addresses. This would simplify finding the right code in code that does a lot of inlining. For example, the c code: static inline void f3(void) { int i; for (i = 0; i < 1000;) {

[PATCH v1 1/4] perf report: Find the inline stack for a given address

2016-11-28 Thread Jin Yao
It would be useful for perf to support a mode to query the inline stack for a given callgraph address. This would simplify finding the right code in code that does a lot of inlining. The srcline.c has contained the code which supports to translate the address to filename:line_nr. This patch just e

Re: [RFC 4/4] mm: Ignore cpuset enforcement when allocation flag has __GFP_THISNODE

2016-11-28 Thread Anshuman Khandual
On 11/29/2016 02:42 AM, Dave Hansen wrote: > On 11/22/2016 06:19 AM, Anshuman Khandual wrote: >> --- a/mm/page_alloc.c >> +++ b/mm/page_alloc.c >> @@ -3715,7 +3715,7 @@ struct page * >> .migratetype = gfpflags_to_migratetype(gfp_mask), >> }; >> >> -if (cpusets_enabled()) { >

Re: [PATCH] Input: joystick: gf2k - change msleep to usleep_range for small msecs

2016-11-28 Thread Vojtech Pavlik
On Tue, Nov 29, 2016 at 01:11:49AM +0530, Aniroop Mathur wrote: > msleep(1~20) may not do what the caller intends, and will often sleep longer. > (~20 ms actual sleep for any value given in the 1~20ms range) > This is not the desired behaviour for many cases like device resume time, > device suspe

[PATCH] Staging: comedi: cb_pcidda: fixed a comment style issue

2016-11-28 Thread Elias Carter
Fixed a coding style issue Signed-off-by: Elias Carter --- drivers/staging/comedi/drivers/cb_pcidda.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/cb_pcidda.c b/drivers/staging/comedi/drivers/cb_pcidda.c index ccb37d1..9874147 100644 ---

Re: [PATCH] Input: joystick: analog - change msleep to usleep_range for small msecs

2016-11-28 Thread Vojtech Pavlik
On Tue, Nov 29, 2016 at 01:11:31AM +0530, Aniroop Mathur wrote: > msleep(1~20) may not do what the caller intends, and will often sleep longer. > (~20 ms actual sleep for any value given in the 1~20ms range) > This is not the desired behaviour for many cases like device resume time, > device suspe

Re: [RFC][PATCH 2/5 v2] drm/bridge: adv7511: Switch to using drm_kms_helper_hotplug_event()

2016-11-28 Thread Laurent Pinchart
Hi John, Thank you for the patch. On Monday 28 Nov 2016 21:04:41 John Stultz wrote: > In chasing down a previous issue with EDID probing from calling > drm_helper_hpd_irq_event() from irq context, Laurent noticed > that the DRM documentation suggests that > drm_kms_helper_hotplug_event() should b

Re: [PATCH] Input: joystick: sidewinder - change msleep to usleep_range for small msecs

2016-11-28 Thread Vojtech Pavlik
On Tue, Nov 29, 2016 at 01:08:22AM +0530, Aniroop Mathur wrote: > msleep(1~20) may not do what the caller intends, and will often sleep longer. > (~20 ms actual sleep for any value given in the 1~20ms range) > This is not the desired behaviour for many cases like device resume time, > device suspen

[PATCH] drm/vmwgfx: Fix handling of errors returned by 'vmw_cotable_alloc()'

2016-11-28 Thread Christophe JAILLET
'vmw_cotable_alloc()' returns an error pointer on error, not NULL. Propagate the error code, instead of returning -ENOMEM unconditionally Signed-off-by: Christophe JAILLET --- drivers/gpu/drm/vmwgfx/vmwgfx_context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/

RE: [PATCH v3] crypto: add virtio-crypto driver

2016-11-28 Thread Gonglei (Arei)
> > > > > + > > > > +/* Note: kernel crypto API realization */ > > > > +static int virtio_crypto_ablkcipher_setkey(struct crypto_ablkcipher > > > > *tfm, > > > > +const uint8_t *key, > > > > +unsigned int keylen) > > >

Re: [PATCH v2 07/12] mm: thp: check pmd migration entry in common path

2016-11-28 Thread Naoya Horiguchi
# sorry for late reply ... On Fri, Nov 18, 2016 at 02:56:24AM +0300, Kirill A. Shutemov wrote: > On Tue, Nov 08, 2016 at 08:31:52AM +0900, Naoya Horiguchi wrote: > > If one of callers of page migration starts to handle thp, memory management > > code > > start to see pmd migration entry, so we ne

Re: [RFC][PATCH 1/5 v2] drm/bridge: adv7511: Use work_struct to defer hotplug handing to out of irq context

2016-11-28 Thread Laurent Pinchart
Hi John, Thank you for the patch. On Monday 28 Nov 2016 21:04:40 John Stultz wrote: > I was recently seeing issues with EDID probing, where > the logic to wait for the EDID read bit to be set by the > IRQ wasn't happening and the code would time out and fail. > > Digging deeper, I found this was

[patch net v2] net: fec: cache statistics while device is down

2016-11-28 Thread Nikita Yushchenko
Execution 'ethtool -S' on fec device that is down causes OOPS on Vybrid board: Unhandled fault: external abort on non-linefetch (0x1008) at 0xe0898200 pgd = ddecc000 [e0898200] *pgd=9e406811, *pte=400d1653, *ppte=400d1453 Internal error: : 1008 [#1] SMP ARM ... Reason of OOPS is that fec_enet_get

[PATCH V5 08/10] PM / OPP: Allow platform specific custom set_opp() callbacks

2016-11-28 Thread Viresh Kumar
The generic set_opp() handler isn't sufficient for platforms with complex DVFS. For example, some TI platforms have multiple regulators for a CPU device. The order in which various supplies need to be programmed is only known to the platform code and its best to leave it to it. This patch impleme

[PATCH V5 04/10] PM / OPP: Manage supply's voltage/current in a separate structure

2016-11-28 Thread Viresh Kumar
This is a preparatory step for multiple regulator per device support. Move the voltage/current variables to a new structure. Signed-off-by: Viresh Kumar Tested-by: Dave Gerlach Reviewed-by: Stephen Boyd --- drivers/base/power/opp/core.c| 44 +--- drivers

[PATCH V5 06/10] PM / OPP: Add infrastructure to manage multiple regulators

2016-11-28 Thread Viresh Kumar
This patch adds infrastructure to manage multiple regulators and updates the only user (cpufreq-dt) of dev_pm_opp_set{put}_regulator(). This is preparatory work for adding full support for devices with multiple regulators. Signed-off-by: Viresh Kumar Tested-by: Dave Gerlach --- V4->V5: - Don't

[PATCH] ipv6:ip6_xmit remove unnecessary np NULL check

2016-11-28 Thread Manjeet Pawar
From: Rohit Thapliyal np NULL check doesn't seem required here as it shall never be NULL anyways in inet6_sk(sk). Signed-off-by: Rohit Thapliyal Signed-off-by: Manjeet Pawar Signed-off-by: David Miller Reviewed-by: Akhilesh Kumar --- v2->v3: Modified as per the suggestion from David Miller

[PATCH V5 07/10] PM / OPP: Separate out _generic_set_opp()

2016-11-28 Thread Viresh Kumar
Later patches would add support for custom set_opp() callbacks. This patch separates out the code for _generic_set_opp() handler in order to prepare for that. Signed-off-by: Viresh Kumar Tested-by: Dave Gerlach Reviewed-by: Stephen Boyd --- V4->V5: - Make 'dev' part of struct dev_pm_set_opp_da

[PATCH V5 10/10] PM / OPP: Don't assume platform doesn't have regulators

2016-11-28 Thread Viresh Kumar
If the regulators aren't set explicitly by the platform, the OPP core assumes that the platform doesn't have any regulator and uses the clk-only callback. If the platform failed to register a regulator with the core, then this can turn out to be a dangerous assumption as the OPP core will try to c

[PATCH V5 03/10] PM / OPP: Don't use OPP structure outside of rcu protected section

2016-11-28 Thread Viresh Kumar
The OPP structure must not be used out of the rcu protected section. Cache the values to be used in separate variables instead. Cc: # v4.6+ Signed-off-by: Viresh Kumar Reviewed-by: Stephen Boyd Tested-by: Dave Gerlach --- drivers/base/power/opp/core.c | 16 +--- 1 file changed, 1

[PATCH V5 01/10] PM / OPP: Fix incorrect cpu-supply property in binding

2016-11-28 Thread Viresh Kumar
The regulator bindings allow the "-supply" property to define a single parent supply and not a list of parents. Fix the wrong example code present in OPP bindings. While at it also change the compatible string as Rob pointed out earlier that none of A7 implementation have multiple supplies for th

[PATCH V5 02/10] PM / OPP: Reword binding supporting multiple regulators per device

2016-11-28 Thread Viresh Kumar
On certain platforms (like TI), DVFS for a single device (CPU) requires configuring multiple power supplies. The OPP bindings already contains binding and example to explain this case, but it isn't sufficient. - There is no way for the code parsing these bindings to know which voltage values be

[PATCH V5 09/10] PM / OPP: Don't WARN on multiple calls to dev_pm_opp_set_regulators()

2016-11-28 Thread Viresh Kumar
If a platform specific OPP driver has called this routine first and set the regulators, then the second call from cpufreq-dt driver will hit the WARN_ON(). Remove the WARN_ON(), but continue to return error in such cases. Signed-off-by: Viresh Kumar Reviewed-by: Stephen Boyd Tested-by: Dave Gerl

[PATCH V5 05/10] PM / OPP: Pass struct dev_pm_opp_supply to _set_opp_voltage()

2016-11-28 Thread Viresh Kumar
Pass the entire supply structure instead of all of its fields. Signed-off-by: Viresh Kumar Tested-by: Dave Gerlach Reviewed-by: Stephen Boyd --- drivers/base/power/opp/core.c | 44 +-- 1 file changed, 17 insertions(+), 27 deletions(-) diff --git a/drive

[PATCH V5 00/10] PM / OPP: Multiple regulator support

2016-11-28 Thread Viresh Kumar
Hi, Some platforms (like TI) have complex DVFS configuration for CPU devices, where multiple regulators are required to be configured to change DVFS state of the device. This was explained well by Nishanth earlier [1]. One of the major complaints around multiple regulators case was that the DT is

Re: [PATCH v3 0/3] powernv:stop: Use psscr_val,mask provided by firmware

2016-11-28 Thread Balbir Singh
On 10/11/16 18:54, Gautham R. Shenoy wrote: > From: "Gautham R. Shenoy" > > This is the third iteration of the patchset to use the psscr_val and > psscr_mask provided by the firmware for each of the stop states. > > The previous version can be found here: > > [v2]: https://lkml.org/lkml/2016/

Re: linux-next: manual merge of the net-next tree with the net tree

2016-11-28 Thread Daniel Borkmann
On 11/29/2016 01:31 AM, Stephen Rothwell wrote: Hi all, Today's linux-next merge of the net-next tree got a conflict in: net/sched/cls_flower.c between commit: d936377414fa ("net, sched: respect rcu grace period on cls destruction") from the net tree and commit: 13fa876ebd03 ("net/

[PATCH v4] fsl/usb: Workarourd for USB erratum-A005697

2016-11-28 Thread Changming Huang
The EHCI specification states the following in the SUSP bit description: In the Suspend state, the port is sensitive to resume detection. Note that the bit status does not change until the port is suspended and that there may be a delay in suspending a port if there is a transaction currently in pr

Re: [PATCH v3 3/3] powernv: Pass PSSCR value and mask to power9_idle_stop

2016-11-28 Thread Gautham R Shenoy
Hi Michael, On Wed, Nov 23, 2016 at 08:51:10PM +1100, Michael Ellerman wrote: > "Gautham R. Shenoy" writes: > > > From: "Gautham R. Shenoy" > > > > The power9_idle_stop method currently takes only the requested stop > > level as a parameter and picks up the rest of the PSSCR bits from a > > han

Re: [PATCH v3 2/3] cpuidle:powernv: Add helper function to populate powernv idle states.

2016-11-28 Thread Gautham R Shenoy
Hi Michael, On Wed, Nov 23, 2016 at 08:49:08PM +1100, Michael Ellerman wrote: > "Gautham R. Shenoy" writes: > > > diff --git a/drivers/cpuidle/cpuidle-powernv.c > > b/drivers/cpuidle/cpuidle-powernv.c > > index 7fe442c..9240e08 100644 > > --- a/drivers/cpuidle/cpuidle-powernv.c > > +++ b/driver

Re: net: deadlock on genl_mutex

2016-11-28 Thread Eric Dumazet
On Mon, 2016-11-28 at 22:59 -0700, subas...@codeaurora.org wrote: > > > > Issue was reported yesterday and is under investigation. > > > > > > http://marc.info/?l=linux-netdev&m=148014004331663&w=2 > > > > > > Thanks ! > > Hi Dmitry > > Can you try the patch below with your reproducer? I hav

Re: [PATCH 3/5] migrate: Add copy_page_mt to use multi-threaded page migration.

2016-11-28 Thread Anshuman Khandual
On 11/28/2016 08:33 PM, Zi Yan wrote: > On 24 Nov 2016, at 4:26, Anshuman Khandual wrote: > >> On 11/22/2016 09:55 PM, Zi Yan wrote: >>> From: Zi Yan >>> >>> From: Zi Yan >> >> Please fix these. >> >>> >>> Internally, copy_page_mt splits a page into multiple threads >>> and send them as jobs to

Re: net: deadlock on genl_mutex

2016-11-28 Thread subashab
Issue was reported yesterday and is under investigation. http://marc.info/?l=linux-netdev&m=148014004331663&w=2 Thanks ! Hi Dmitry Can you try the patch below with your reproducer? I haven't seen similar crashes reported after this (or even with Eric's patch). https://patchwork.ozlabs.o

[PATCH v2] net: macb: Write only necessary bits in NCR in macb reset

2016-11-28 Thread Harini Katakam
In macb_reset_hw, use read-modify-write to disable RX and TX. Existing settings, for ex. management port enable, are being cleared in the current implementation. Also certain reserved bits are read only. Hence it is better to use read-modify-write. Use the same method for clearing statistics as wel

Re: [PATCH v2] vfs: fix put_compat_statfs64() does not handle errors

2016-11-28 Thread Li Wang
sorry, ping for comments~ On 15 November 2016 at 17:19, Li Wang wrote: > put_compat_statfs64() does NOT return -1 and setting errno to EOVERFLOW > when some variables(like: f_bsize) overflowed in the returned struct. > > The reason is that the ubuf->f_blocks is __u64 type, it couldn't be > 4bit

Re: perf: fuzzer BUG: KASAN: stack-out-of-bounds in __unwind_start

2016-11-28 Thread Josh Poimboeuf
On Mon, Nov 28, 2016 at 04:40:21PM -0800, Paul E. McKenney wrote: > On Mon, Nov 28, 2016 at 03:54:11PM -0600, Josh Poimboeuf wrote: > > On Thu, Nov 24, 2016 at 12:33:48PM -0500, Vince Weaver wrote: > > > > > > This is on a skylake machine, linus git as of yesterday after the various > > > kasan-r

Re: [PATCH v3 1/5] thermal: rockchip: improve conversion error messages

2016-11-28 Thread Brian Norris
Hi, On Mon, Nov 28, 2016 at 05:51:55PM -0800, Eduardo Valentin wrote: > On Mon, Nov 28, 2016 at 07:12:00PM +0800, Caesar Wang wrote: > > From: Brian Norris > > > > These error messages don't give much information about what went wrong. > > It would be nice, for one, to see what invalid temperatu

Re: [patch net] net: fec: cache statistics while device is down

2016-11-28 Thread Nikita Yushchenko
> > > >+ fec_enet_update_ethtool_stats(ndev); > >+ > If user never open the interface, ethtool_stats[] always is 0 that are not > expected. > So, it also should be called at . fec_enet_init() ? I don't think that zero stats is wrong for never-opened interface. However a call at init path wo

[PATCH V3] PM / OPP: Don't remove the first cpu in the mask before removing others

2016-11-28 Thread Viresh Kumar
Joonyoung Shim reported an interesting problem on his ARM octa-core Odoroid-XU3 platform. During system suspend, dev_pm_opp_put_regulator() was failing for a struct device for which dev_pm_opp_set_regulator() is called earlier. This happened because an earlier call to dev_pm_opp_of_cpumask_remove_

Re: [PATCH v2 0/3] increase TSCADC clock to 24MHz and fix ti,charge-delay to represent in nS

2016-11-28 Thread Mugunthan V N
On Friday 25 November 2016 03:29 PM, Lee Jones wrote: > On Fri, 25 Nov 2016, Mugunthan V N wrote: > >> Hi Dmitry Torokhov, >> >> On Thursday 10 November 2016 10:05 PM, Mugunthan V N wrote: >>> This patch series enables ADC to be clocked at 24MHz as the >>> TI AM335x ADC driver has already adopted

Re: [PATCH V2] PM / OPP: Allow inactive opp_device to be present in dev list

2016-11-28 Thread Viresh Kumar
On 29-11-16, 11:04, Viresh Kumar wrote: Too stupid of me to not update the $subject. Sorry for the noise, will resend it shortly after making sure all text is fine. -- viresh

[PATCH V2] PM / OPP: Allow inactive opp_device to be present in dev list

2016-11-28 Thread Viresh Kumar
Joonyoung Shim reported an interesting problem on his ARM octa-core Odoroid-XU3 platform. During system suspend, dev_pm_opp_put_regulator() was failing for a struct device for which dev_pm_opp_set_regulator() is called earlier. This happened because an earlier call to dev_pm_opp_of_cpumask_remove_

[PATCH update] mremap: move_ptes: check pte dirty after its removal

2016-11-28 Thread Aaron Lu
Linus found there still is a race in mremap after commit 5d1904204c99 ("mremap: fix race between mremap() and page cleanning"). As described by Linus: the issue is that another thread might make the pte be dirty (in the hardware walker, so no locking of ours make any difference) *after* we checked

Re: [PATCH v2 3/4] dt-bindings: phy: Add support for QMP phy

2016-11-28 Thread Vivek Gautam
Hi, On Tue, Nov 29, 2016 at 4:25 AM, Stephen Boyd wrote: > On 11/22, Vivek Gautam wrote: >> diff --git a/Documentation/devicetree/bindings/phy/qcom-qmp-phy.txt >> b/Documentation/devicetree/bindings/phy/qcom-qmp-phy.txt >> new file mode 100644 >> index 000..ffb173b >> --- /dev/null >> +++ b

Re: [PATCH v2 1/4] dt-bindings: phy: Add support for QUSB2 phy

2016-11-28 Thread Vivek Gautam
Hi Stephen, On Tue, Nov 29, 2016 at 4:19 AM, Stephen Boyd wrote: Thanks for reviewing the patch-series. > On 11/22, Vivek Gautam wrote: >> diff --git a/Documentation/devicetree/bindings/phy/qcom-qusb2-phy.txt >> b/Documentation/devicetree/bindings/phy/qcom-qusb2-phy.txt >> new file mode 100644

Re: [PATCH v2 1/4] dt-bindings: phy: Add support for QUSB2 phy

2016-11-28 Thread Vivek Gautam
Hi Rob, On Mon, Nov 28, 2016 at 7:49 PM, Rob Herring wrote: Thanks for reviewing the patch. > On Tue, Nov 22, 2016 at 05:32:40PM +0530, Vivek Gautam wrote: >> Qualcomm chipsets have QUSB2 phy controller that provides >> HighSpeed functionality for DWC3 controller. >> Adding dt binding informat

Re: [PATCH] openvswitch: add sanity check in queue_userspace_packet.

2016-11-28 Thread Pravin Shelar
On Mon, Nov 28, 2016 at 8:36 PM, Haishuang Yan wrote: > kernel will crash in oops if genlmsg_put return NULL, > so add the sanity check. > > Signed-off-by: Haishuang Yan > --- > net/openvswitch/datapath.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/net/openvswitch/datapath.c b/n

Re: [PATCH] PM / OPP: Allow inactive opp_device to be present in dev list

2016-11-28 Thread Viresh Kumar
On 28-11-16, 18:46, Stephen Boyd wrote: > Anyway, rant over, how about handing out the opp table pointer to > the caller so they can pass it back in when they call the put > side? That should fix the same problem if I understand correctly. Hmm, so the problem is that all below routines (and their

Re: [PATCH 1/5] mm: migrate: Add mode parameter to support additional page copy routines.

2016-11-28 Thread Anshuman Khandual
On 11/28/2016 08:43 PM, Zi Yan wrote: > On 24 Nov 2016, at 18:56, Balbir Singh wrote: > >> > On 23/11/16 03:25, Zi Yan wrote: >>> >> From: Zi Yan >>> >> >>> >> From: Zi Yan >>> >> >>> >> migrate_page_copy() and copy_huge_page() are affected. >>> >> >>> >> Signed-off-by: Zi Yan >>> >> Signed-off

linux-next: Tree for Nov 29

2016-11-28 Thread Stephen Rothwell
Hi all, Changes since 20161128: The net-next tree gained conflicts against the net tree. The crypto tree gained a build failure so I used the version from next-20161128. The akpm-current tree still had its build failure for which I added a supplied patch. Non-merge commits (relative to Linus

[RFC][PATCH 4/5 v2] drm/bridge: adv7511: Rework adv7511_power_on/off() so they can be reused internally

2016-11-28 Thread John Stultz
In chasing down issues with EDID probing, I found some duplicated but incomplete logic used to power the chip on and off. This patch refactors the adv7511_power_on/off functions, so they can be used for internal needs. Cc: David Airlie Cc: Archit Taneja Cc: Wolfram Sang Cc: Lars-Peter Clausen

[RFC][PATCH 5/5 v2] drm/bridge: adv7511: Reuse __adv7511_power_on/off() when probing EDID

2016-11-28 Thread John Stultz
I've found that by just turning the chip on and off via the POWER_DOWN register, I end up getting i2c_transfer errors on HiKey. Investigating further, it seems some of the register state in the regmap cache is somehow getting lost. Using the logic in __adv7511_power_on/off() which syncs and dirtys

[RFC][PATCH 2/5 v2] drm/bridge: adv7511: Switch to using drm_kms_helper_hotplug_event()

2016-11-28 Thread John Stultz
In chasing down a previous issue with EDID probing from calling drm_helper_hpd_irq_event() from irq context, Laurent noticed that the DRM documentation suggests that drm_kms_helper_hotplug_event() should be used instead. Thus this patch replaces drm_helper_hpd_irq_event() with drm_kms_helper_hotpl

[RFC][PATCH 0/5 v2] adv7511 EDID probing improvements

2016-11-28 Thread John Stultz
Wanted to send out v2 of this patch set improving the EDID probing on the adv7511 used on HiKey. The first three patches are fixups that are hopefully straight forward, integrating feedback I got from Laurant. One of the previous patches that Laurant had concerns about, I broke into two patches,

[RFC][PATCH 1/5 v2] drm/bridge: adv7511: Use work_struct to defer hotplug handing to out of irq context

2016-11-28 Thread John Stultz
I was recently seeing issues with EDID probing, where the logic to wait for the EDID read bit to be set by the IRQ wasn't happening and the code would time out and fail. Digging deeper, I found this was due to the fact that IRQs were disabled as we were running in IRQ context from the HPD signal.

[RFC][PATCH 3/5 v2] drm/bridge: adv7511: Enable HPD interrupts to support hotplug and improve monitor detection

2016-11-28 Thread John Stultz
From: Archit Taneja On some adv7511 implementations, we can get some spurious disconnect signals which can cause monitor probing to fail. This patch enables HPD (hot plug detect) interrupt support which allows the monitor to be properly re-initialized when the spurious disconnect signal goes awa

Re: [RFC PATCH] crypto: Add IV generation algorithms

2016-11-28 Thread Binoy Jayan
On 28 November 2016 at 18:17, Herbert Xu wrote: > On Mon, Nov 21, 2016 at 03:40:09PM +0530, Binoy Jayan wrote: >> Currently, the iv generation algorithms are implemented in dm-crypt.c. >> The goal is to move these algorithms from the dm layer to the kernel >> crypto layer by implementing them as t

[PATCH] openvswitch: add sanity check in queue_userspace_packet.

2016-11-28 Thread Haishuang Yan
kernel will crash in oops if genlmsg_put return NULL, so add the sanity check. Signed-off-by: Haishuang Yan --- net/openvswitch/datapath.c | 4 1 file changed, 4 insertions(+) diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c index 2d4c4d3..ceb1b1e 100644 --- a/net/openv

Re: [PATCH 2/3] iio: st_accel: Support sensor i2c probe using acpi

2016-11-28 Thread Shrirang Bagul
On Sun, 2016-11-27 at 11:14 +, Jonathan Cameron wrote: > On 24/11/16 14:26, Linus Walleij wrote: > > On Thu, Nov 24, 2016 at 6:33 AM, Shrirang Bagul > > wrote: > > > > > Add support to probe st_accel sensors on i2c bus using ACPI. Compatible > > > strings are not avaialable on ACPI based syst

Re: [PATCH 3/3] iio: st_pressure: Support i2c probe using acpi

2016-11-28 Thread Shrirang Bagul
On Sun, 2016-11-27 at 11:12 +, Jonathan Cameron wrote: > On 24/11/16 14:28, Linus Walleij wrote: > > On Thu, Nov 24, 2016 at 6:33 AM, Shrirang Bagul > > wrote: > > > > > Compatible strings are not available on ACPI based systems. This patch > > > adds > > > support to use DSDT information rea

[PATCH V1] leds: pca963x: Add ACPI support

2016-11-28 Thread Tin Huynh
This patch enables ACPI support for leds-pca963x driver. Signed-off-by: Tin Huynh --- drivers/leds/leds-pca963x.c | 22 +- 1 files changed, 21 insertions(+), 1 deletions(-) diff --git a/drivers/leds/leds-pca963x.c b/drivers/leds/leds-pca963x.c index 407eba1..be51a12 100644

Re: [RFC PATCH 1/2] net: macb: Add MDIO driver for accessing multiple PHY devices

2016-11-28 Thread Harini Katakam
Hi Andrew, On Mon, Nov 28, 2016 at 10:03 PM, Andrew Lunn wrote: > On Mon, Nov 28, 2016 at 03:19:14PM +0530, Harini Katakam wrote: >> This patch is to add support for the hardware with multiple ethernet >> MAC controllers and a single MDIO bus connected to multiple PHY devices. >> MDIO lines are c

Re: [PATCH] x86/kbuild: enable modversions for symbols exported from asm

2016-11-28 Thread Linus Torvalds
On Mon, Nov 28, 2016 at 5:15 PM, Ben Hutchings wrote: >> >> The modversions stuff may just be too painful to bother with. Very few >> people probably use it, and the ones that do likely don't have any >> overriding reason why. > [...] > > Debian has some strong reasons: Honestly, I'd just like to

Re: [PATCHv4] shmem: avoid huge pages for small files

2016-11-28 Thread Hugh Dickins
On Mon, 14 Nov 2016, Kirill A. Shutemov wrote: > On Fri, Nov 11, 2016 at 01:41:11PM -0800, Hugh Dickins wrote: > > > > Certainly the new condition is easier to understand than the old condition: > > which is a plus, even though it's hackish (I do dislike hobbling the first > > extent, when it's an

Re: [PATCH] PM / OPP: Allow inactive opp_device to be present in dev list

2016-11-28 Thread Viresh Kumar
On 28-11-16, 18:46, Stephen Boyd wrote: > That's a lot of lines for something that we want to backport to > stable kernels! Hmm, I agree. > The whole dev_list design seems fairly broken to me. Another > solution would be to iterate the cpumask in reverse, but there > doesn't seem to be a construc

  1   2   3   4   5   6   7   8   9   10   >