[PATCH v2 2/3] i2c: i801: Create iTCO device on newer Intel PCHs

2015-07-29 Thread Matt Fleming
From: Mika Westerberg Starting from Intel Sunrisepoint (Skylake PCH) the iTCO watchdog resources have been moved to reside under the i801 SMBus host controller whereas previously they were under the LPC device. In order to support the iTCO watchdog on newer PCHs we need to create the platform

[PATCH v2 1/3] iTCO_wdt: Expose watchdog properties using platform data

2015-07-29 Thread Matt Fleming
From: Matt Fleming Intel Sunrisepoint (Skylake PCH) has the iTCO watchdog accessible across the SMBus, unlike previous generations of PCH/ICH where it was on the LPC bus. Because it's on the SMBus, it doesn't make sense to pass around a 'struct lpc_ich_info', and leaking the type of bus into the

[PATCH v2 0/3] iTCO_wdt: Add support for Intel Sunrisepoint

2015-07-29 Thread Matt Fleming
From: Matt Fleming Starting with Intel Sunrisepoint (Skylake PCH) the TCO watchdog device is now on the SMBUS, whereas for previous ICH/PCH it was on the LPC bus. Because iTCO_wdt devices may now appear on either the LPC bus or the SMBUS we need to abstract the bus information into an agnostic

Re: [PATCH 01/17] mmc: host: omap_hsmmc: use devm_regulator_get_optional() for vmmc

2015-07-29 Thread Grygorii Strashko
On 07/29/2015 02:09 PM, Kishon Vijay Abraham I wrote: > Since vmmc can be optional for some platforms, use > devm_regulator_get_optional() for vmmc. Now return error only > in the case of -EPROBE_DEFER and for all other cases set > host->vcc to NULL. > > Signed-off-by: Kishon Vijay Abraham I >

Re: [PATCH v3 1/1] kernel/sysctl.c: Add /proc/sys/vm/shrink_memory feature

2015-07-29 Thread Johannes Weiner
On Wed, Jul 29, 2015 at 10:41:10AM +0530, PINTU KUMAR wrote: > I was talking about only the following case. > Instead of hard coding the hibernation_mode in shrink_all_memory, > We can set it at runtime. > > - .hibernation_mode = 1, > > + if (system_entering_hibernation()) >

Re: [PATCH 03/12] mtd: nand: omap: Move IRQ handling from GPMC to NAND driver

2015-07-29 Thread Roger Quadros
Tony, On 13/07/15 15:40, Tony Lindgren wrote: > * Roger Quadros [150713 03:07]: >> Tony, >> >> On 13/07/15 10:10, Tony Lindgren wrote: >>> * Roger Quadros [150710 05:26]: Since the Interrupt Events are used only by the NAND driver, there is no point in managing the Interrupt registers

[char-misc-next 2/3] mei: hbm: add new error code MEI_CL_CONN_NOT_ALLOWED

2015-07-29 Thread Tomas Winkler
From: Alexander Usyskin The device can return error 5 (NOT_ALLOWED) on connection attempt. This error can happen if: 1. An another connection attempt is in progress 2. There is an attempt to connect a fixed (connectionless) client 3. The number of available connections is exceeded (new in HBM

Re: [PATCH V2 1/1] serial: 8250_pci: add RS485 for F81504/508/512

2015-07-29 Thread Jakub Kiciński
On Tue, 28 Jul 2015 11:59:24 +0800, Peter Hung wrote: > Add RS485 control for Fintek F81504/508/512 > > F81504/508/512 can control their RTS with H/W mode. > PCI configuration space for each port is 0x40 + idx * 8 + 7. > > When it set with 0x01, it's configured with RS232 mode. > RTS is

[char-misc-next 3/3 V2] mei: disconnect on connection request timeout

2015-07-29 Thread Tomas Winkler
From: Alexander Usyskin For the FW with HBM version >= 2.0 we don't need to reset the whole device in case of a particular client failing to connect. It is sufficient to send a disconnect request to bring the device to the stable state. Signed-off-by: Alexander Usyskin Signed-off-by: Tomas

[char-misc-next 1/3 V2] mei: support for dynamic clients

2015-07-29 Thread Tomas Winkler
HBM version 2.0 and above allows ME clients in the system to register/unregister after the system is fully initialized. Clients may be added or removed after enum_resp message was received 1. To preserve backward compatibility the driver can opt-in to receive client add messages by setting

Re: Next round: revised futex(2) man page for review

2015-07-29 Thread Thomas Gleixner
On Tue, 28 Jul 2015, Darren Hart wrote: > Found it on libc-alpha, here it is for reference: > > From: Rich Felker > Date: Wed, 29 Oct 2014 22:43:17 -0400 > To: Darren Hart > Cc: Carlos O'Donell , Roland McGrath > , > Torvald Riegel , GLIBC Devel > , >

[PATCH v2 1/5] time: Introduce struct itimerspec64

2015-07-29 Thread Baolin Wang
The struct itimerspec is not year 2038 safe on 32bit systems due to the limitation of the struct timespec members. Introduce itimerspec64 which uses struct timespec64 instead and provide conversion functions. Signed-off-by: Baolin Wang --- include/linux/time64.h | 35

Re: [PATCH 7/8] memcg: get rid of mm_struct::owner

2015-07-29 Thread Michal Hocko
On Tue 14-07-15 17:18:23, Michal Hocko wrote: > On Fri 10-07-15 16:05:33, Michal Hocko wrote: > > JFYI: I've found some more issues while hamerring this more. > > OK so the main issue is quite simple but I have completely missed it when > thinking about the patch before. clone(CLONE_VM) without

Re: [PATCH v2] mm: show proportional swap share of the mapping

2015-07-29 Thread Jerome Marchand
On 07/29/2015 12:30 PM, Minchan Kim wrote: > Hi Jerome, > > On Wed, Jul 29, 2015 at 10:33:53AM +0200, Jerome Marchand wrote: >> On 06/15/2015 03:06 PM, Minchan Kim wrote: >>> We want to know per-process workingset size for smart memory management >>> on userland and we use swap(ex, zram) heavily

Re: [RFC -v2] panic_on_oom_timeout

2015-07-29 Thread Michal Hocko
On Wed 17-06-15 15:24:27, Michal Hocko wrote: > On Wed 17-06-15 14:51:27, Michal Hocko wrote: > [...] > > The important thing is to decide what is the reasonable way forward. We > > have two two implementations of panic based timeout. So we should decide > > And the most obvious question, of

Re: [PATCH v2] Input: Add generic driver for Zeitec touchscreens

2015-07-29 Thread Bogdan George Stefan
Dimitry, Please let me know if there is anything I can provide for this driver. Thank you, Bogdan On Thu, Jun 18, 2015 at 11:39 AM, Bogdan George Stefan wrote: > Dimitry, > > You can control how many fingers work on a device via the firmware > that you load. I've asked the Zeitec guys to

Re: [regression 4.2-rc3] loop: xfstests xfs/073 deadlocked in low memory conditions

2015-07-29 Thread Michal Hocko
On Tue 21-07-15 10:58:59, Michal Hocko wrote: > [CCing more people from a potentially affected fs - the reference to the > email thread is: http://marc.info/?l=linux-mm=143744398020147=2] > > On Tue 21-07-15 11:59:34, Dave Chinner wrote: > > Hi Ming, > > > > With the recent merge of the loop

Re: [RFC PATCH v2 0/3] genirq, serial: 8250: Workaround to avoid irq=0 for console

2015-07-29 Thread Thomas Gleixner
On Wed, 29 Jul 2015, Peter Hurley wrote: > On 07/29/2015 06:32 AM, Thomas Gleixner wrote: > > On Wed, 29 Jul 2015, Taichi Kageyama wrote: > >> - Keep interrupt disabled on the CPU which is used to detect > >> an interrupt during the timeout of autoconfig_irq(). > >> + Kick printk() on the

Re: [PATCH RFC V6 6/6] perf,tests: Add tests to callgraph and time parse

2015-07-29 Thread Jiri Olsa
On Mon, Jul 27, 2015 at 08:21:39AM -0400, Kan Liang wrote: > From: Kan Liang > > Add tests in tests/parse-events.c to check callgraph and time option > > Signed-off-by: Kan Liang > --- > tools/perf/tests/parse-events.c | 28 > 1 file changed, 28 insertions(+) > >

Re: Potential data race in psmouse_interrupt

2015-07-29 Thread Pali Rohár
Hi! This log looks like there can be race condition in initialization code, but not in receiving ALPS packets after initialization... On Thursday 23 July 2015 15:31:46 Andrey Konovalov wrote: > Hi Pali, > > There are a few reports in psmouse-base.c/alps.c code as well. > Here is a couple of them

Re: [RFC PATCH v2 0/3] genirq, serial: 8250: Workaround to avoid irq=0 for console

2015-07-29 Thread Peter Hurley
On 07/29/2015 06:32 AM, Thomas Gleixner wrote: > On Wed, 29 Jul 2015, Taichi Kageyama wrote: >> - Keep interrupt disabled on the CPU which is used to detect >> an interrupt during the timeout of autoconfig_irq(). >> + Kick printk() on the CPU which detects interrupt >>from a

Re: [PATCH RFC V6 5/6] perf,tool: per-event callgraph support

2015-07-29 Thread Jiri Olsa
On Mon, Jul 27, 2015 at 08:21:38AM -0400, Kan Liang wrote: SNIP > diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c > index 7febfe2..874de7d 100644 > --- a/tools/perf/util/evsel.c > +++ b/tools/perf/util/evsel.c > @@ -545,14 +545,15 @@ int perf_evsel__group_desc(struct perf_evsel

Re: [PATCH RFC V6 5/6] perf,tool: per-event callgraph support

2015-07-29 Thread Jiri Olsa
On Mon, Jul 27, 2015 at 08:21:38AM -0400, Kan Liang wrote: SNIP > > -static void apply_config_terms(struct perf_evsel *evsel) > +static void apply_config_terms(struct perf_evsel *evsel, > +struct record_opts *opts) > { > struct perf_evsel_config_term *term; >

Re: [PATCH 1/5] Add functions producing system time given a backing counter value

2015-07-29 Thread Richard Cochran
On Wed, Jul 29, 2015 at 12:49:44PM +0200, Peter Zijlstra wrote: > This is still fuzzy, right? The hardware ART timestamp could be from > _before_ the NTP adjust; or the NTP adjust could happen while we do this > conversion and we'll take the retry loop. In the original series, yes. > In both

pozdravy!

2015-07-29 Thread Mssge
Nize kontaktujte me pro zakladni dohodu. E-mail: chn.j...@gmail.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at

[PATCH] KVM: move code related to KVM_SET_BOOT_CPU_ID to x86

2015-07-29 Thread Paolo Bonzini
This is another remnant of ia64 support. Signed-off-by: Paolo Bonzini --- arch/x86/include/asm/kvm_host.h | 3 +++ arch/x86/kvm/x86.c | 20 include/linux/kvm_host.h| 16 virt/kvm/kvm_main.c | 14 -- 4 files

Re: [Xen-devel] [PATCH 4/8] xen: Use the correctly the Xen memory terminologies

2015-07-29 Thread Wei Liu
On Wed, Jul 29, 2015 at 12:35:54PM +0100, Julien Grall wrote: > Hi Wei, > > On 29/07/15 11:13, Wei Liu wrote: > > On Tue, Jul 28, 2015 at 04:02:45PM +0100, Julien Grall wrote: > > [...] > >> diff --git a/drivers/net/xen-netback/netback.c > >> b/drivers/net/xen-netback/netback.c > >> index

Re: [Xen-devel] [PATCH 4/8] xen: Use the correctly the Xen memory terminologies

2015-07-29 Thread David Vrabel
On 29/07/15 12:35, Julien Grall wrote: > Hi Wei, > > On 29/07/15 11:13, Wei Liu wrote: >> On Tue, Jul 28, 2015 at 04:02:45PM +0100, Julien Grall wrote: >> [...] >>> diff --git a/drivers/net/xen-netback/netback.c >>> b/drivers/net/xen-netback/netback.c >>> index 7d50711..3b7b7c3 100644 >>> ---

Re: [Xen-devel] [PATCH 4/8] xen: Use the correctly the Xen memory terminologies

2015-07-29 Thread Julien Grall
Hi Wei, On 29/07/15 11:13, Wei Liu wrote: > On Tue, Jul 28, 2015 at 04:02:45PM +0100, Julien Grall wrote: > [...] >> diff --git a/drivers/net/xen-netback/netback.c >> b/drivers/net/xen-netback/netback.c >> index 7d50711..3b7b7c3 100644 >> --- a/drivers/net/xen-netback/netback.c >> +++

Re: [PATCH 09/10] mm, page_alloc: Reserve pageblocks for high-order atomic allocations on demand

2015-07-29 Thread Vlastimil Babka
On 07/20/2015 10:00 AM, Mel Gorman wrote: > From: Mel Gorman > > High-order watermark checking exists for two reasons -- kswapd high-order > awareness and protection for high-order atomic requests. Historically we > depended on MIGRATE_RESERVE to preserve min_free_kbytes as high-order free >

Re: [RFC PATCH 07/14] mm/huge_page: Convert khugepaged() into kthread worker API

2015-07-29 Thread Petr Mladek
On Tue 2015-07-28 13:36:35, Tejun Heo wrote: > Hello, > > On Tue, Jul 28, 2015 at 04:39:24PM +0200, Petr Mladek wrote: > > -static void khugepaged_wait_work(void) > > +static void khugepaged_wait_func(struct kthread_work *dummy) > > { > > if (khugepaged_has_work()) { > > if

Re: [Xen-devel] [PATCH 4/8] xen: Use the correctly the Xen memory terminologies

2015-07-29 Thread Julien Grall
Hi Chris, On 28/07/15 20:39, Chris (Christopher) Brand wrote: >> Based on include/xen/mm.h [1], Linux is mistakenly using MFN when GFN is >> meant, >> I suspect this is because the first support for Xen was for PV. This brough >> some > Typo : "brought" > Perhaps "resulted in" would be better ?

Re: [PATCH 4/8] xen: Use the correctly the Xen memory terminologies

2015-07-29 Thread Julien Grall
Hi Boris, On 28/07/15 20:12, Boris Ostrovsky wrote: > On 07/28/2015 11:02 AM, Julien Grall wrote: >> Based on include/xen/mm.h [1], Linux is mistakenly using MFN when GFN >> is meant, I suspect this is because the first support for Xen was for >> PV. This brough some misimplementation of helpers

Re: [RFC PATCH 13/14] kthread_worker: Add set_kthread_worker_user_nice()

2015-07-29 Thread Petr Mladek
On Tue 2015-07-28 13:40:58, Tejun Heo wrote: > On Tue, Jul 28, 2015 at 04:39:30PM +0200, Petr Mladek wrote: > ... > > +/* > > + * set_kthread_worker_user_nice - set scheduling priority for the kthread > > worker > > + * @worker: target kthread_worker > > + * @nice: niceness value > > + */ > >

[PATCH] arm64: remove dead-code depending on CONFIG_UP_LATE_INIT

2015-07-29 Thread Jonas Rabenstein
Commit 4b3dc9679cf7 ("arm64: force CONFIG_SMP=y and remove redundant #ifdefs") removed UP_LATE_INIT from Kconfig, as it had !SMP as dependency and therfore can not be selected anymore. Remove dead #ifdef-block depending on UP_LATE_INIT in arch/arm64/kernel/setup.c Signed-off-by: Jonas Rabenstein

Re: [PATCH v7 4/6] block: loop: prepare for supporing direct IO

2015-07-29 Thread Ming Lei
On Wed, Jul 29, 2015 at 4:41 AM, Dave Chinner wrote: > On Wed, Jul 29, 2015 at 03:33:52AM -0400, Ming Lei wrote: >> On Mon, Jul 27, 2015 at 1:33 PM, Christoph Hellwig >> wrote: >> > On Mon, Jul 27, 2015 at 05:53:33AM -0400, Ming Lei wrote: >> >> Because size has to be 4k aligned too. >> > >> >

Re: [PATCH RFC V6 5/6] perf,tool: per-event callgraph support

2015-07-29 Thread Jiri Olsa
On Mon, Jul 27, 2015 at 08:21:38AM -0400, Kan Liang wrote: SNIP > struct parse_events_term { > diff --git a/tools/perf/util/parse-events.l b/tools/perf/util/parse-events.l > index f542750..16af73b 100644 > --- a/tools/perf/util/parse-events.l > +++ b/tools/perf/util/parse-events.l > @@ -184,6

Re: [PATCH v2 04/22] of/platform: add of_platform_device_find()

2015-07-29 Thread Tomeu Vizoso
On 29 July 2015 at 08:14, Tomeu Vizoso wrote: > On 28 July 2015 at 17:31, Rob Herring wrote: >> On Tue, Jul 28, 2015 at 8:54 AM, Tomeu Vizoso >> wrote: >>> On 28 July 2015 at 15:39, Rob Herring wrote: On Tue, Jul 28, 2015 at 8:19 AM, Tomeu Vizoso wrote: > From an arbitrary node

Re: [PATCH v5 2/8] firmware: add support for ARM System Control and Power Interface(SCPI) protocol

2015-07-29 Thread Jassi Brar
On Wed, Jul 29, 2015 at 2:08 PM, Sudeep Holla wrote: > On 29/07/15 09:05, Jassi Brar wrote: > >> >>> +static int scpi_probe(struct platform_device *pdev) >>> +{ >>> + int count, idx, ret; >>> + struct resource res; >>> + struct scpi_chan *scpi_chan; >>> + struct device

RE: [PATCH 2/3] drivers: usb: dwc3: Add adjust_frame_length_quirk

2015-07-29 Thread Badola Nikhil
> -Original Message- > From: Felipe Balbi [mailto:ba...@ti.com] > Sent: Monday, July 27, 2015 8:38 PM > To: Badola Nikhil-B46172 > Cc: ba...@ti.com; linux-kernel@vger.kernel.org; linux-...@vger.kernel.org; > linux-o...@vger.kernel.org; gre...@linuxfoundation.org > Subject: Re: [PATCH 2/3]

Re: [rtc-linux] [PATCH] drivers/rtc/rtc-pl031.c: reset registers in init flow

2015-07-29 Thread Leo Yan
Hi Linus, On Wed, Jul 29, 2015 at 11:08:30AM +0200, Linus Walleij wrote: > On Wed, Jul 29, 2015 at 8:02 AM, Leo Yan wrote: > > > When use rtc-pl031 for suspend test on Hisilicon's SoC Hi6220, Usually > > the data register (DR) will read back as value zero. So the suspend > > test code will set

[PATCH 08/17] mmc: host: omap_hsmmc: add separate functions for enable/disable supply

2015-07-29 Thread Kishon Vijay Abraham I
No functional change. Cleanup omap_hsmmc_set_power by adding separate functions for enable/disable supply and invoke it from omap_hsmmc_set_power. Signed-off-by: Kishon Vijay Abraham I --- drivers/mmc/host/omap_hsmmc.c | 101 +++-- 1 file changed, 66

[PATCH 01/17] mmc: host: omap_hsmmc: use devm_regulator_get_optional() for vmmc

2015-07-29 Thread Kishon Vijay Abraham I
Since vmmc can be optional for some platforms, use devm_regulator_get_optional() for vmmc. Now return error only in the case of -EPROBE_DEFER and for all other cases set host->vcc to NULL. Signed-off-by: Kishon Vijay Abraham I --- drivers/mmc/host/omap_hsmmc.c |8 +--- 1 file changed, 5

[PATCH 05/17] mmc: host: omap_hsmmc: use mmc_host's vmmc and vqmmc

2015-07-29 Thread Kishon Vijay Abraham I
No functional change. Instead of using our own vcc and vcc_aux members, use vmmc and vqmmc present in mmc_host which is present for the same purpose. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Roger Quadros --- drivers/mmc/host/omap_hsmmc.c | 63

[PATCH 12/17] ARM: dts: am57xx-beagle-x15: Fix regulator populated in MMC1 dt node

2015-07-29 Thread Kishon Vijay Abraham I
For beagle x15, both the vdd and io lines are connected to the same regulator (ldo1_reg). However vmmc_aux is populated to vdd_3v3. Remove it. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/am57xx-beagle-x15.dts |1 - 1 file changed, 1 deletion(-) diff --git

[PATCH] arm64: remove redundant object file list

2015-07-29 Thread Jonas Rabenstein
Commit 4b3dc9679cf7 ("arm64: force CONFIG_SMP=y and remove redundant #ifdefs") forces SMP on arm64. To build the necessary objects for SMP, they were added to the arm64-obj-y rule in arch/arm64/kernel/Makefile, without removing the arm64-obj-$(CONFIG_SMP) rule. Remove redundant object file list

[PATCH 06/17] mmc: host: omap_hsmmc: remove unnecessary pbias set_voltage

2015-07-29 Thread Kishon Vijay Abraham I
Remove the unnecessary pbias regulator_set_voltage done after pbias regulator_disable in omap_hsmmc_set_power. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Roger Quadros --- drivers/mmc/host/omap_hsmmc.c |1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mmc/host/omap_hsmmc.c

[PATCH 10/17] mmc: host: omap_hsmmc: avoid pbias regulator enable on power off

2015-07-29 Thread Kishon Vijay Abraham I
Fix omap_hsmmc_set_power so that pbias regulator is not enabled during power off. Signed-off-by: Kishon Vijay Abraham I --- drivers/mmc/host/omap_hsmmc.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c

[PATCH 16/17] mmc: host: omap_hsmmc: remove CONFIG_REGULATOR check

2015-07-29 Thread Kishon Vijay Abraham I
Now that support for platforms which have optional regulator is added, remove CONFIG_REGULATOR check in omap_hsmmc. Signed-off-by: Kishon Vijay Abraham I --- drivers/mmc/host/omap_hsmmc.c | 35 +++ 1 file changed, 3 insertions(+), 32 deletions(-) diff --git

[PATCH 04/17] mmc: host: omap_hsmmc: use the ocrmask provided by the vmmc regulator

2015-07-29 Thread Kishon Vijay Abraham I
If the vmmc regulator provides a valid ocrmask, use it. By this even if the pdata has a valid ocrmask, it will be overwritten with the ocrmask of the vmmc regulator. Also remove the unnecessary compatibility check between the ocrmask in the pdata and the ocrmask from the vmmc regulator.

[PATCH 09/17] mmc: host: omap_hsmmc: add separate function to set pbias

2015-07-29 Thread Kishon Vijay Abraham I
No functional change. Cleanup omap_hsmmc_set_power by adding separate functions to set pbias and invoke it from omap_hsmmc_set_power. Signed-off-by: Kishon Vijay Abraham I --- drivers/mmc/host/omap_hsmmc.c | 78 + 1 file changed, 48 insertions(+), 30

[PATCH 14/17] mmc: host: omap_hsmmc: use regulator_is_enabled to find pbias status

2015-07-29 Thread Kishon Vijay Abraham I
Use regulator_is_enabled of pbias regulator to find pbias regulator status instead of maintaining a custom bookkeeping pbias_enabled variable. Signed-off-by: Kishon Vijay Abraham I --- drivers/mmc/host/omap_hsmmc.c |8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git

[PATCH 11/17] mmc: host: omap_hsmmc: don't use ->set_power to set initial regulator state

2015-07-29 Thread Kishon Vijay Abraham I
If the regulator is enabled on boot (checked using regulator_is_enabled), invoke regulator_enable() so that the usecount reflects the correct state of the regulator and then disable the regulator so that the initial state of the regulator is disabled. Avoid using ->set_power, since set_power also

[PATCH 15/17] mmc: host: omap_hsmmc: use ios->vdd for setting vmmc voltage

2015-07-29 Thread Kishon Vijay Abraham I
vdd voltage is set in mmc core to ios->vdd and vmmc should actually be set to this voltage. Modify omap_hsmmc_enable_supply to not take vdd as argument since now it's directly set to the voltage in ios->vdd. Signed-off-by: Kishon Vijay Abraham I --- drivers/mmc/host/omap_hsmmc.c |7 ---

[PATCH 17/17] mmc: host: omap_hsmmc: use "mmc_of_parse_voltage" to get ocr_avail

2015-07-29 Thread Kishon Vijay Abraham I
From: Roger Quadros For platforms that doesn't have explicit regulator control in MMC, populate voltage-ranges in MMC device tree node and use mmc_of_parse_voltage to get ocr_avail Signed-off-by: Roger Quadros Signed-off-by: Lokesh Vutla Signed-off-by: Murali Karicheri Signed-off-by:

[PATCH 13/17] mmc: host: omap_hsmmc: enable/disable vmmc_aux regulator based on prior state

2015-07-29 Thread Kishon Vijay Abraham I
enable vmmc_aux regulator only if it is in disabled state and disable vmmc_aux regulator only if it is in enabled state. Signed-off-by: Kishon Vijay Abraham I --- drivers/mmc/host/omap_hsmmc.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 02/17] mmc: host: omap_hsmmc: return error from omap_hsmmc_reg_get on -EPROBE_DEFER

2015-07-29 Thread Kishon Vijay Abraham I
EPROBE_DEFER is not fatal and it means the regulator can still be obtained. Hence return error if devm_regulator_get_optional for vmmc_aux and pbias returns -EPROBE_DEFER. This gives omap_hsmmc driver another chance to get these regulators. Signed-off-by: Kishon Vijay Abraham I ---

[PATCH 03/17] mmc: host: omap_hsmmc: cleanup omap_hsmmc_reg_get()

2015-07-29 Thread Kishon Vijay Abraham I
No functional change. Instead of using a local regulator variable in omap_hsmmc_reg_get() for holding the return value of devm_regulator_get_optional() and then assigning to omap_hsmmc_host regulator members: vcc, vcc_aux and pbias, directly use the omap_hsmmc_host regulator members.

[PATCH 07/17] mmc: host: omap_hsmmc: return error if any of the regulator APIs fail

2015-07-29 Thread Kishon Vijay Abraham I
Return error if any of the regulator APIs (regulator_enable, regulator_disable, regulator_set_voltage) fails in omap_hsmmc_set_power to avoid undefined behavior. Signed-off-by: Kishon Vijay Abraham I --- drivers/mmc/host/omap_hsmmc.c | 52 +++-- 1 file

Re: [PATCH 1/5] iTCO_wdt: Expose watchdog properties using platform data

2015-07-29 Thread Matt Fleming
On Wed, 29 Jul, at 09:29:34AM, Jean Delvare wrote: > Hi Matt, > > On Mon, 27 Jul 2015 14:38:08 +0100, Matt Fleming wrote: > > diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig > > index 241fafde42cb..5336fe2ff689 100644 > > --- a/drivers/watchdog/Kconfig > > +++

[PATCH 00/17] omap_hsmmc: regulator usage cleanup and fixes

2015-07-29 Thread Kishon Vijay Abraham I
This patch series does the following *) Uses devm_regulator_get_optional() for vmmc and then removes the CONFIG_REGULATOR check altogether. *) return on -EPROBE_DEFER *) enable/disable vmmc_aux regulator based on prior state This series is in preparation for implementing the voltage switch

RE: [PATCH net v2 2/2] r8152: reset device when tx timeout

2015-07-29 Thread Hayes Wang
Oliver Neukum [mailto:oneu...@suse.com] > Sent: Wednesday, July 29, 2015 3:22 PM [...] > Now, I think I got the reason for the confusion. > > You are using cancel_delayed_work(>schedule); after you queue a reset. > Therefore the order in which the work and the reset will be executed is >

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

2015-07-29 Thread Ley Foon Tan
On Wed, Jul 29, 2015 at 11:43 AM, Rob Herring wrote: > On Tue, Jul 28, 2015 at 5:45 AM, Ley Foon Tan wrote: >> This patch adds the Altera PCIe host controller driver. >> >> Signed-off-by: Ley Foon Tan >> + >> +static int altera_pcie_setup(int nr, struct pci_sys_data *sys) >> +{ >> +

Re: [PATCH v2] dtb: Create a common home for cross-architecture dtsi files.

2015-07-29 Thread Masahiro Yamada
Hi Ian, 2015-07-27 19:35 GMT+09:00 Ian Campbell : > Commit 9ccd608070b6 "arm64: dts: add device tree for ARM SMM-A53x2 on > LogicTile Express 20MG" added a new dts file to arch/arm64 which > included "../../../../arm/boot/dts/vexpress-v2m-rs1.dtsi", i.e. a > .dtsi supplied by arch/arm. > >

Re: [Xen-devel] [PATCH 4/8] xen: Use the correctly the Xen memory terminologies

2015-07-29 Thread Julien Grall
On 28/07/15 18:16, David Vrabel wrote: > On 28/07/15 16:02, Julien Grall wrote: >> Based on include/xen/mm.h [1], Linux is mistakenly using MFN when GFN >> is meant, I suspect this is because the first support for Xen was for >> PV. This brough some misimplementation of helpers on ARM and make the

[PATCH v4 3/3] arm64: dts: Add spi bus dts

2015-07-29 Thread Leilk Liu
This patch adds MT8173 spi bus controllers into device tree. Signed-off-by: Leilk Liu --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi

[PATCH v4 2/3] spi: mediatek: Add spi bus for Mediatek MT8173

2015-07-29 Thread Leilk Liu
This patch adds basic spi bus for MT8173. Signed-off-by: Leilk Liu --- drivers/spi/Kconfig | 9 + drivers/spi/Makefile | 1 + drivers/spi/spi-mt65xx.c | 732 +++ include/linux/platform_data/spi-mt65xx.h |

[PATCH v4 1/3] dt-binding: spi: Mediatek: Document devicetree bindings for spi bus

2015-07-29 Thread Leilk Liu
Signed-off-by: Leilk Liu --- .../devicetree/bindings/spi/spi-mt65xx.txt | 38 ++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-mt65xx.txt diff --git a/Documentation/devicetree/bindings/spi/spi-mt65xx.txt

[PATCH v4 0/3] Add Mediatek SPI bus driver

2015-07-29 Thread Leilk Liu
Change in v4: 1. fix Mark Brown review comment. Change in v3: 1. support fifo mode function. 2. support any non-prime length transfer in dma mode. 3. use interrupt to handle scatterlist. 4. fix review comment. Change in v2: 1. Remove spi bitbang framwork, use can_dma() and transfer_one(). 2.

Re: [PATCH 0/8] Use correctly the Xen memory terminologies in Linux

2015-07-29 Thread Julien Grall
On 28/07/15 16:02, Julien Grall wrote: > Hi all, > > This patch series aims to use the memory terminologies described in > include/linux/mm.h [1] for Linux xen code. I mistakenly wrote the wrong include here. It should be include/xen/mm.h from the Xen tree:

Re: [PATCH RFC V6 4/6] perf,tool: per-event time support

2015-07-29 Thread Jiri Olsa
On Mon, Jul 27, 2015 at 08:21:37AM -0400, Kan Liang wrote: SNIP > > diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c > index 09bee93..b10a5c0 100644 > --- a/tools/perf/util/parse-events.c > +++ b/tools/perf/util/parse-events.c > @@ -603,6 +603,11 @@ do {

Re: [PATCH] cpufreq: Add scaling frequency range support

2015-07-29 Thread Viresh Kumar
On 29-07-15, 18:04, Pan Xinhui wrote: > > @@ -622,21 +630,20 @@ static int cpufreq_set_policy(struct cpufreq_policy > > *policy, > > static ssize_t store_##file_name \ > > (struct cpufreq_policy *policy, const char *buf, size_t count) \ > > {

[PATCH V3 05/16] PM / OPP: Allocate dev_opp from _add_device_opp()

2015-07-29 Thread Viresh Kumar
There is no need to complicate _opp_add_dynamic() with allocation of dev_opp as well. Allocate it from _add_device_opp() instead. Reviewed-by: Stephen Boyd Reviewed-by: Bartlomiej Zolnierkiewicz Signed-off-by: Viresh Kumar --- drivers/base/power/opp.c | 50

[PATCH V3 06/16] PM / OPP: Break _opp_add_dynamic() into smaller functions

2015-07-29 Thread Viresh Kumar
Later commits would add support for new OPP bindings and this would be required then. So, lets do it in a separate patch to make it easily reviewable. Another change worth noticing is INIT_LIST_HEAD(>node). We weren't doing it earlier as we never tried to delete a list node before it is added to

[PATCH V3 08/16] PM / OPP: Add clock-latency-ns support

2015-07-29 Thread Viresh Kumar
With "operating-points-v2" bindings, clock-latency is defined per OPP. Users of this value expect a single value which defines the latency to switch to any clock rate. Find maximum clock-latency-ns from the OPP table to service requests from such users. Reviewed-by: Stephen Boyd Reviewed-by:

Re: [PATCH 0/4] enable migration of driver pages

2015-07-29 Thread Daniel Vetter
On Wed, Jul 29, 2015 at 11:49:45AM +0100, Mel Gorman wrote: > On Mon, Jul 13, 2015 at 05:35:15PM +0900, Gioh Kim wrote: > > My ARM-based platform occured severe fragmentation problem after long-term > > (several days) test. Sometimes even order-3 page allocation failed. It has > > memory size

Re: [PATCH 1/4] opp: add dev_pm_opp_is_turbo() helper

2015-07-29 Thread Viresh Kumar
On 29-07-15, 12:53, Pavel Machek wrote: > So any combination of normal OPPs can be sustained for arbitrary time > within the temperature range? Maybe not. That's why we user thermal framework to sense such situations and react accordingly. > And as soon as any turbo OPP is enabled, we produce

[PATCH V3 12/16] PM / OPP: add dev_pm_opp_is_turbo() helper

2015-07-29 Thread Viresh Kumar
From: Bartlomiej Zolnierkiewicz Add dev_pm_opp_is_turbo() helper to verify if an opp is to be used only for turbo mode or not. Cc: Tomasz Figa Cc: Michael Turquette Cc: Javier Martinez Canillas Cc: Thomas Abraham Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Viresh Kumar ---

[PATCH V3 14/16] cpufreq: Allow drivers to enable boost support after registering driver

2015-07-29 Thread Viresh Kumar
In some cases it wouldn't be known at time of driver registration, if the driver needs to support boost frequencies. For example, while getting boost information from DT with opp-v2 bindings, we need to parse the bindings for all the CPUs to know if turbo/boost OPPs are supported or not. One way

[PATCH V3 13/16] cpufreq: Update boost flag while initializing freq table from OPPs

2015-07-29 Thread Viresh Kumar
From: Bartlomiej Zolnierkiewicz cpufreq table entries for OPPs with turbo modes enabled, should be marked with CPUFREQ_BOOST_FREQ flag. This ensures that these states are only used while operating in boost or turbo mode. Cc: Tomasz Figa Cc: Michael Turquette Cc: Javier Martinez Canillas Cc:

[PATCH V3 09/16] PM / OPP: Add OPP sharing information to OPP library

2015-07-29 Thread Viresh Kumar
An opp can be shared by multiple devices, for example its very common for CPUs to share the OPPs, i.e. when they share clock/voltage rails. This patch adds support of shared OPPs to the OPP library. Instead of a single device, dev_opp will now contain a list of devices that use it. It also

[PATCH V3 11/16] PM / OPP: Add helpers for initializing CPU OPPs

2015-07-29 Thread Viresh Kumar
With "operating-points-v2" its possible to tell which devices share OPPs. We already have infrastructure to decode that information. This patch adds following APIs: - of_get_cpus_sharing_opps: Returns cpumask of CPUs sharing OPPs (only valid with v2 bindings). - of_cpumask_init_opp_table:

[PATCH V3 10/16] PM / OPP: Add support for opp-suspend

2015-07-29 Thread Viresh Kumar
With "operating-points-v2" bindings, its possible to specify the OPP to which the device must be switched, before suspending. This patch adds support for getting that information. Reviewed-by: Bartlomiej Zolnierkiewicz Signed-off-by: Viresh Kumar --- drivers/base/power/opp.c | 11 +++

[PATCH V3 15/16] cpufreq: dt: Add support for operating-points-v2 bindings

2015-07-29 Thread Viresh Kumar
Support for parsing operating-points-v2 bindings is in place now, lets modify cpufreq-dt driver to use them. For backward compatibility we will continue to support earlier bindings. Special handling for that is required, to make sure OPPs are initialized for all the CPUs. Reviewed-by: Bartlomiej

Re: [PATCH 1/4] opp: add dev_pm_opp_is_turbo() helper

2015-07-29 Thread Pavel Machek
On Wed 2015-07-29 15:54:35, Viresh Kumar wrote: > On 28-07-15, 16:27, Pavel Machek wrote: > > Typo. > > > > And this is not exactly most helpful comment. opp is turbo... returns > > if opp was turbo. Explanation what "turbo" means in this context would > > be nice. I'm pretty sure it is not about

[PATCH V3 16/16] cpufreq: dt: Add support for turbo/boost mode

2015-07-29 Thread Viresh Kumar
With opp-v2 DT bindings, few OPPs can be used only for the boost mode. But using such OPPs require the boost mode to be supported by cpufreq driver. We will parse DT bindings only during ->init() and so can enable boost support only after registering cpufreq driver. This enables boost support as

[PATCH V3 07/16] PM / OPP: Add support to parse "operating-points-v2" bindings

2015-07-29 Thread Viresh Kumar
This adds support in OPP library to parse and create list of OPPs from operating-points-v2 bindings. It takes care of most of the properties of new bindings (except shared-opp, which will be handled separately). For backward compatibility, we keep supporting earlier bindings. We try to search for

[PATCH V3 03/16] PM / OPP: Relocate few routines

2015-07-29 Thread Viresh Kumar
In order to prepare for the later commits, this relocates few routines towards the top as they will be used earlier in the code. Reviewed-by: Stephen Boyd Reviewed-by: Bartlomiej Zolnierkiewicz Signed-off-by: Viresh Kumar --- drivers/base/power/opp.c | 277

[PATCH V3 01/16] PM / OPP: Update bindings to make opp-hz a 64 bit value

2015-07-29 Thread Viresh Kumar
With a 32 bit value, the maximum frequency that the bindings can support is ~ 4 GHz. And that might fall short of what newer systems may have. Allow opp-hz to be a 64 bit big-endian value. Cc: Rob Herring Cc: devicet...@vger.kernel.org Suggested-by: Stephen Boyd Suggested-by: Bartlomiej

[PATCH V3 04/16] PM / OPP: Create _remove_device_opp() for freeing dev_opp

2015-07-29 Thread Viresh Kumar
This will be used from multiple places later. Lets create a separate routine for that. Reviewed-by: Stephen Boyd Reviewed-by: Bartlomiej Zolnierkiewicz Signed-off-by: Viresh Kumar --- drivers/base/power/opp.c | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff

Re: [PATCH 2/4] mm/compaction: enable mobile-page migration

2015-07-29 Thread Mel Gorman
On Mon, Jul 13, 2015 at 05:35:17PM +0900, Gioh Kim wrote: > From: Gioh Kim > > Add framework to register callback functions and check page mobility. > There are some modes for page isolation so that isolate interface > has arguments of page address and isolation mode while putback > interface

Re: [PATCH 1/5] Add functions producing system time given a backing counter value

2015-07-29 Thread Peter Zijlstra
On Wed, Jul 29, 2015 at 12:23:27PM +0200, Thomas Gleixner wrote: > +/* > + * CHECKME: Do we need the adjust value? It should be 0, but if we run > + * in a VM this might be a different story. > + */ > +static u64 tsc_adjust; Urgh, VMs have !0 values here? -- To unsubscribe from this list: send

Re: [PATCH 1/4] fs/anon_inodes: new interface to create new inode

2015-07-29 Thread Mel Gorman
On Mon, Jul 13, 2015 at 05:35:16PM +0900, Gioh Kim wrote: > From: Gioh Kim > > The anon_inodes has already complete interfaces to create manage > many anonymous inodes but don't have interface to get > new inode. Other sub-modules can create anonymous inode > without creating and mounting it's

Re: [PATCH 0/4] enable migration of driver pages

2015-07-29 Thread Mel Gorman
On Mon, Jul 13, 2015 at 05:35:15PM +0900, Gioh Kim wrote: > My ARM-based platform occured severe fragmentation problem after long-term > (several days) test. Sometimes even order-3 page allocation failed. It has > memory size 512MB ~ 1024MB. 30% ~ 40% memory is consumed for graphic > processing >

Re: [PATCH 1/5] Add functions producing system time given a backing counter value

2015-07-29 Thread Peter Zijlstra
On Wed, Jul 29, 2015 at 12:19:06PM +0200, Thomas Gleixner wrote: > I don't know whether we need functionality to convert arbitrary > timestamps at all, but if we really need them then they are going to > be pretty simple and explicitely not precise for anything else than > clock monotonic raw. But

Re: [PATCH V5 0/7] Allow user to request memory to be locked on page fault

2015-07-29 Thread Vlastimil Babka
On 07/29/2015 12:45 PM, Michal Hocko wrote: >> In a much less >> likely corner case, it is not possible in the current setup to request >> all current VMAs be VM_LOCKONFAULT and all future be VM_LOCKED. > > Vlastimil has already pointed that out. MCL_FUTURE doesn't clear > MCL_CURRENT. I was

May close() return any error code?

2015-07-29 Thread Takashi Iwai
Hi, while debugging a problem of X and gdm with the old systemd-210, we encountered a sudden death of systemd-logind, and this turned out to be an unexpected errno from close(). The close() call for input devices returns ENODEV error. The logind in systemd-210 treats this error code as fatal,

Re: [PATCH 3/5] iTCO_wdt: Add support for TCO on Intel Sunrisepoint

2015-07-29 Thread Matt Fleming
On Tue, 28 Jul, at 07:03:41PM, Jean Delvare wrote: > Hi Matt, > > Le Monday 27 July 2015 à 14:38 +0100, Matt Fleming a écrit : > > From: Matt Fleming > > > > The revision of the watchdog hardware in Sunrisepoint necessitates a new > > "version" inside the TCO watchdog driver because some of the

Re: [PATCH V5 0/7] Allow user to request memory to be locked on page fault

2015-07-29 Thread Michal Hocko
On Tue 28-07-15 09:49:42, Eric B Munson wrote: > On Tue, 28 Jul 2015, Michal Hocko wrote: > > > [I am sorry but I didn't get to this sooner.] > > > > On Mon 27-07-15 10:54:09, Eric B Munson wrote: > > > Now that VM_LOCKONFAULT is a modifier to VM_LOCKED and > > > cannot be specified

Re: [PATCH v5 1/2] perf,kvm/ppc: Add kvm_perf.h for powerpc

2015-07-29 Thread Hemant Kumar
Hi Scott, On 07/17/2015 01:40 AM, Scott Wood wrote: On Thu, 2015-07-16 at 21:18 +0530, Hemant Kumar wrote: To analyze the exit events with perf, we need kvm_perf.h to be added in the arch/powerpc directory, where the kvm tracepoints needed to trace the KVM exit events are defined. This patch

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