[PATCH] softirq/preempt: add missing current->preempt_disable_ip update

2014-11-24 Thread Heiko Carstens
While debugging some "sleeping function called from invalid context" bug I realized that the debug message "Preemption disabled at:" pointed to an incorrect function. In particular if the function/action that disabled preemption was spin_lock_bh() then current->preempt_disable_ip won't be updated.

Re: [patch 01/16] irqdomain: Introduce new interfaces to support hierarchy irqdomains

2014-11-24 Thread Jiang Liu
On 2014/11/24 22:01, Yun Wu (Abel) wrote: > On 2014/11/24 21:13, Thomas Gleixner wrote: > >> On Mon, 24 Nov 2014, Yun Wu (Abel) wrote: >>> Hi Thomas, Jiang, >>> On 2014/11/12 21:42, Thomas Gleixner wrote: >>> From: Jiang Liu >>> [...] /* Number of irqs reserved for a legacy isa

[PATCH] regulator: core: Add PRE_DISABLE notification

2014-11-24 Thread Richard Fitzgerald
Add a PRE_DISABLE notification so that consumers can use a notifier to run any steps required to prepare for the regulator being switched off. Since the regulator disable can fail an abort notification is also added. Signed-off-by: Richard Fitzgerald --- drivers/regulator/core.c |

Re: [PATCH] kvm: x86: move assigned-dev.c and iommu.c to arch/x86/

2014-11-24 Thread Radim Krčmář
2014-11-22 17:22+0100, Paolo Bonzini: > On 21/11/2014 22:21, Radim Krčmář wrote: > > - struct kvm_assigned_dev_kernel depends on struct kvm_irq_ack_notifier > > kvm_assign_device and kvm_deassign_device can also be moved to arch/x86, > in a new assigned-dev.h header. The header could include

Re: [PATCH ftrace/core v6 5/5] kselftest, ftrace: Add ftrace IPMODIFY flag test

2014-11-24 Thread Masami Hiramatsu
(CC'ed Shuah, since this is related to kselftest) (2014/11/24 13:29), Steven Rostedt wrote: > On Mon, 24 Nov 2014 11:50:06 +0900 > Masami Hiramatsu wrote: > >> (2014/11/22 6:03), Steven Rostedt wrote: >>> On Fri, 21 Nov 2014 05:25:37 -0500 >>> Masami Hiramatsu wrote: >>> Add ftrace

[PATCH] pseries/le: Fix endiannes issue in RTAS call from xmon

2014-11-24 Thread Laurent Dufour
On pseries system (LPAR) xmon failed to enter when running in LE mode, system is hunging. Inititating xmon will lead to such an output on the console: SysRq : Entering xmon cpu 0x15: Vector: 0 at [c003f39ffb10] pc: c007ed7c: sysrq_handle_xmon+0x5c/0x70 lr: c007ed7c:

Re: [PATCH 5/5] MODSIGN: Use PKCS#7 messages as module signatures

2014-11-24 Thread Mimi Zohar
On Thu, 2014-11-20 at 16:54 +, David Howells wrote: > > /* > @@ -186,12 +81,8 @@ static struct key *request_asymmetric_key(const char > *signer, size_t signer_len, > */ > int mod_verify_sig(const void *mod, unsigned long *_modlen) > { > - struct public_key_signature *pks; >

Using kernel filesystems as userland libraries

2014-11-24 Thread Nicolas George
Hi. With the libraries present in e2fsprogs, it is possible to open a plain file (or any other reasonable storage) as an EXT2 filesystem and manipulate files inside it. Is it possible to use the implementations in the kernel to do the same thing with any supported normal filesystem? Obviously,

Re: [PATCH V4 7/8] powerpc, ptrace: Enable support for miscellaneous debug registers

2014-11-24 Thread Denis Kirjanov
On 11/21/14, Anshuman Khandual wrote: > On 11/14/2014 03:30 PM, Denis Kirjanov wrote: >> On 11/13/14, Anshuman Khandual wrote: >>> > On 11/11/2014 10:56 AM, Anshuman Khandual wrote: >> This patch enables get and set of miscellaneous debug registers >> through >> ptrace

Re: [PATCH v9 02/10] sched: Track group sched_entity usage contributions

2014-11-24 Thread Vincent Guittot
On 21 November 2014 at 13:35, Morten Rasmussen wrote: > s/usage/utilization/ in subject. > > On Mon, Nov 03, 2014 at 04:54:39PM +, Vincent Guittot wrote: >> From: Morten Rasmussen >> >> Adds usage contribution tracking for group entities. Unlike > > s/usage contribution/utilization/ > >>

Re: [PATCH v9 01/10] sched: add utilization_avg_contrib

2014-11-24 Thread Vincent Guittot
On 21 November 2014 at 13:34, Morten Rasmussen wrote: > Should the subject mention that the patch adds utilization tracking? > Maybe: 'sched: Add utilization tracking' ? > > > On Mon, Nov 03, 2014 at 04:54:38PM +, Vincent Guittot wrote: >> Add new statistics which reflect the average time a

[PATCH] mm/zsmalloc: support allocating obj with size of ZS_MAX_ALLOC_SIZE

2014-11-24 Thread Mahendran Ganesh
I sent a patch [1] for unnecessary check in zsmalloc. And Minchan Kim found zsmalloc even does not support allocating an obj with the size of ZS_MAX_ALLOC_SIZE in some situations. For example: In system with 64KB PAGE_SIZE and 32 bit of physical addr. Then: ZS_MIN_ALLOC_SIZE is 32 bytes

[PATCH] mm/zsmalloc: remove uninitialized_var

2014-11-24 Thread Mahendran Ganesh
uninitialized_var() is not recommended to be used to avoid compiler warnings https://lkml.org/lkml/2012/10/27/71 So this patch initializes ret with *NOTIFY_OK*. Signed-off-by: Mahendran Ganesh --- mm/zsmalloc.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [patch 01/16] irqdomain: Introduce new interfaces to support hierarchy irqdomains

2014-11-24 Thread Yun Wu (Abel)
On 2014/11/24 21:13, Thomas Gleixner wrote: > On Mon, 24 Nov 2014, Yun Wu (Abel) wrote: >> Hi Thomas, Jiang, >> On 2014/11/12 21:42, Thomas Gleixner wrote: >> >>> From: Jiang Liu >>> >> [...] >>> /* Number of irqs reserved for a legacy isa controller */ >>> #define NUM_ISA_INTERRUPTS 16 >>> @@

[PATCH 2/2] gpio: add a driver for GPIOs going through a level shifter

2014-11-24 Thread Alban Bedel
This driver support setting the level shifter direction and/or enable as needed. Signed-off-by: Alban Bedel --- drivers/gpio/Kconfig | 6 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-level-shifter.c | 248 ++ 3 files changed,

[PATCH 1/2] devicetree: add a binding for GPIOs going though a level shifter

2014-11-24 Thread Alban Bedel
Signed-off-by: Alban Bedel --- .../devicetree/bindings/gpio/gpio-level-shifter.txt | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-level-shifter.txt diff --git

Re: [PATCH V3 11/11] MIPS: Add multiplatform BMIPS target

2014-11-24 Thread Arnd Bergmann
On Sunday 23 November 2014 18:40:46 Kevin Cernekee wrote: > bmips_be_defconfig supports Linux running on the following CM and DSL > SoCs: > > - BCM3384 (BMIPS5000) cable modem application processor, BE, SMP > - BCM3384 (BMIPS4355) cable modem "spare CPU"*, BE > - BCM6328 (BMIPS4355) ADSL chip,

RE: [PATCH v2 1/1] mfd: intel_quark_i2c_gpio: Add Intel Quark X1000 I2C-GPIO MFD Driver

2014-11-24 Thread Tan, Raymond
Hi Lee Jones, Thanks for the review and input. Here's the responses. Warm Regards,  Raymond Tan > -Original Message- > From: Lee Jones [mailto:lee.jo...@linaro.org] > Sent: Wednesday, November 19, 2014 1:22 AM > To: Tan, Raymond > Cc: Samuel Ortiz; linux-kernel@vger.kernel.org; Chen,

Re: [PATCH] gpu/drm/drm_sysfs.c: Export drm_sysfs_connector_add and drm_sysfs_connector_remove

2014-11-24 Thread Rob Clark
On Mon, Nov 24, 2014 at 7:25 AM, Mike Looijmans wrote: > Building the adi_axi_hdmi driver as a module failed: > ERROR: "drm_sysfs_connector_remove" > [drivers/gpu/drm/adi_axi_hdmi/adi_axi_hdmi.ko] undefined! > > Mark drm_sysfs_connector_remove for export to fix this. Also mark >

[PATCH] ARM: Add unwinding support for memmove function

2014-11-24 Thread Lin Yongting
The memmove function never had unwinding annotations added. Currently, when accessing invalid pointer by memmove occurs the backtrace shown will stop at memmove or some completely unrelated function. Add unwinding annotations in hopes of getting a more useful backtrace in following cases: 1. die

Re: [PATCH net-next v4 0/4] netns: allow to identify peer netns

2014-11-24 Thread Nicolas Dichtel
Le 30/10/2014 19:41, Eric W. Biederman a écrit : Nicolas Dichtel writes: The goal of this serie is to be able to multicast netlink messages with an attribute that identify a peer netns. This is needed by the userland to interpret some informations contained in netlink messages (like IFLA_LINK

Re: [PATCH] i2c: Add parameters to sysfs-added i2c devices

2014-11-24 Thread Corey Minyard
Ping, I haven't heard anything on this. -corey On 11/14/2014 08:41 AM, miny...@acm.org wrote: > From: Corey Minyard > > Some devices might need parameters to control their operation, > add the ability to pass these parameters to the client. > > This also makes the parsing of sysfs-added I2C

Re: [PATCH 3/5] PKCS#7: Allow detached data to be supplied for signature checking purposes

2014-11-24 Thread Mimi Zohar
On Mon, 2014-11-24 at 12:48 +, David Howells wrote: > Mimi Zohar wrote: > > > Ok, PCKS#7 supports detached data. I assume this is not needed for > > kernel modules. What is the motivation for adding this support to the > > kernel? > > See patch #5. I should probably note that in the

[Query] Replaced UHS_DDR50 with MMC_DDR52.

2014-11-24 Thread Kishon Vijay Abraham I
Hi Seungwon, Enabling UHS in dra7xx resulted in the below error (see blow). It was bisected to commit 5438ad95a57cbfd95708a5047a27ff3cce345b79 Author: Seungwon Jeon Date: Fri Mar 14 21:12:27 2014 +0900 mmc: omap: clarify DDR timing mode between SD-UHS and eMMC Replaced UHS_DDR50

Re: [PATCH 1/5] X.509: Extract both parts of the AuthorityKeyIdentifier

2014-11-24 Thread David Howells
Vivek Goyal wrote: > A very minor nit. It might help if we put additional comment to explain what > auth_id and auth_skid are composed of (like other key ids). I thought it better to show what they match - ie. auth_id matches id and auth_skid matches skid from the same structure. The id and

Re: [2/5] i2c: davinci: query STP always when NACK is received

2014-11-24 Thread Grygorii Strashko
Hi Uwe, On 11/23/2014 10:33 PM, Uwe Kleine-König wrote: > On Fri, Nov 21, 2014 at 05:33:37PM +0200, Grygorii Strashko wrote: >> On 11/21/2014 03:10 PM, Uwe Kleine-König wrote: >>> On Fri, Nov 21, 2014 at 02:48:57PM +0200, Grygorii Strashko wrote: On 11/21/2014 12:19 AM, Uwe Kleine-König

Re: [PATCH V3 00/11] Multiplatform BMIPS kernel

2014-11-24 Thread Arnd Bergmann
On Sunday 23 November 2014 18:40:35 Kevin Cernekee wrote: > V2->V3: > > - Omit the BMIPS updates that have already been accepted into Ralf's tree. >They are still needed, but not reposted. > > - Make USB endian swap options conditional on "if CPU_BIG_ENDIAN". > > - Remove board listing

Re: [PATCHv3 2/3] kernel: add support for live patching

2014-11-24 Thread Masami Hiramatsu
(2014/11/24 20:13), Thomas Gleixner wrote: > On Thu, 20 Nov 2014, Seth Jennings wrote: >> This commit introduces code for the live patching core. It implements >> an ftrace-based mechanism and kernel interface for doing live patching >> of kernel and kernel module functions. >> >> It represents

Re: [PATCH] mmc: dw_mmc: try pick the exact same voltage as vmmc for vqmmc

2014-11-24 Thread Ulf Hansson
On 21 November 2014 at 22:04, Doug Anderson wrote: > Hi, > > On Fri, Nov 21, 2014 at 9:42 AM, Doug Anderson wrote: >> Ulf, >> >> On Fri, Nov 21, 2014 at 4:06 AM, Ulf Hansson wrote: >>> [...] >>> Sure If the first card is sd2.0 since startup, dw_mci_switch_voltage will not be

Re: [PATCHv3 2/3] kernel: add support for live patching

2014-11-24 Thread Vojtech Pavlik
On Mon, Nov 24, 2014 at 02:26:08PM +0100, Thomas Gleixner wrote: > On Mon, 24 Nov 2014, Jiri Kosina wrote: > > On Mon, 24 Nov 2014, Thomas Gleixner wrote: > > > How is determined whether a change can be applied w/o a consistency > > > mechanism or not? > > > > By a human being producing the "live

Re: [PATCH/RFC 7/7] kernel: Force ACCESS_ONCE to work only on scalar types

2014-11-24 Thread David Howells
Christian Borntraeger wrote: > +#define get_scalar_volatile_pointer(x) ({ \ > + typeof(x) *__p = &(x); \ > + volatile typeof(x) *__vp = __p; \ > + (void)(long)*__p; __vp; }) > +#define ACCESS_ONCE(x) (*get_scalar_volatile_pointer(x)) Might this cause two loads from memory under some

Re: [PATCHv3 2/3] kernel: add support for live patching

2014-11-24 Thread Jiri Kosina
On Mon, 24 Nov 2014, Thomas Gleixner wrote: > > The person writing the patch would always need to understand what he is > > doing to be able to pick correct consistency model to be used. I > > personally think this is a good thing -- this is nothing where we should > > be relying on any kinds

Re: [PATCHv3 2/3] kernel: add support for live patching

2014-11-24 Thread Thomas Gleixner
On Mon, 24 Nov 2014, Jiri Kosina wrote: > On Mon, 24 Nov 2014, Thomas Gleixner wrote: > > How is determined whether a change can be applied w/o a consistency > > mechanism or not? > > By a human being producing the "live patch" code. > > If the semantics of the patch requires consistency

Re: [4/5] i2c: davinci: use bus recovery infrastructure

2014-11-24 Thread Grygorii Strashko
Hi Uwe, On 11/23/2014 10:36 PM, Uwe Kleine-König wrote: > On Fri, Nov 21, 2014 at 09:33:22PM +0200, Grygorii Strashko wrote: >> On 11/21/2014 09:07 PM, Uwe Kleine-König wrote: >>> On Thu, Nov 20, 2014 at 12:03:07PM +0200, Grygorii Strashko wrote: >>> Just another general comment about the driver

[PATCH resend] init: fix read-write root mount

2014-11-24 Thread Miklos Szeredi
From: Miklos Szeredi If mount flags don't have MS_RDONLY, iso9660 returns EACCES without actually checking if it's an iso image. This tricks mount_block_root() into retrying with MS_RDONLY. This results in a read-only root despite the "rw" boot parameter if the actual filesystem was checked

Re: [PATCHv3 2/3] kernel: add support for live patching

2014-11-24 Thread Josh Poimboeuf
On Mon, Nov 24, 2014 at 12:13:20PM +0100, Thomas Gleixner wrote: > On Thu, 20 Nov 2014, Seth Jennings wrote: > > This commit introduces code for the live patching core. It implements > > an ftrace-based mechanism and kernel interface for doing live patching > > of kernel and kernel module

[PATCH 1/6] UBI: Fastmap: Care about the protection queue

2014-11-24 Thread Richard Weinberger
Fastmap can miss a PEB if it is in the protection queue and not jet in the used tree. Treat every protected PEB as used. Signed-off-by: Richard Weinberger --- drivers/mtd/ubi/fastmap.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/mtd/ubi/fastmap.c

Re: [PATCH v2 09/11] sched: test the cpu's capacity in wake affine

2014-11-24 Thread Vincent Guittot
On 24 November 2014 at 01:34, Wanpeng Li wrote: > Hi Vincent, > On 5/28/14, 7:15 PM, Vincent Guittot wrote: >> >> On 28 May 2014 12:58, Peter Zijlstra wrote: >>> >>> On Fri, May 23, 2014 at 05:53:03PM +0200, Vincent Guittot wrote: > > [snip] >>> >>> Now I'm only struggling to understand the

[PATCH 4/6] UBI: Fastmap: Fix races in ubi_wl_get_peb()

2014-11-24 Thread Richard Weinberger
ubi_wl_get_peb() has two problems, it reads the pool size and usage counters without any protection. While reading one value would be perfectly fine it reads multiple values and compares them. This is racy and can lead to incorrect pool handling. Furthermore ubi_update_fastmap() is called without

Re: [PATCHv3 2/3] kernel: add support for live patching

2014-11-24 Thread Vojtech Pavlik
On Mon, Nov 24, 2014 at 12:13:20PM +0100, Thomas Gleixner wrote: > > This commit introduces code for the live patching core. It implements > > an ftrace-based mechanism and kernel interface for doing live patching > > of kernel and kernel module functions. > > > > It represents the greatest

[PATCH RFC v2 12/12] arm64: Kconfig: Enable PM_GENERIC_DOMAINS for exynos7

2014-11-24 Thread Amit Daniel Kachhap
Use power domain driver for Exynos7 SOC's Signed-off-by: Amit Daniel Kachhap --- arch/arm64/Kconfig |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 30bd4d5..b102d0b 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -154,6 +154,7 @@

[PATCH 5/6] UBI: Split __wl_get_peb()

2014-11-24 Thread Richard Weinberger
Make it two functions, wl_get_wle() and wl_get_peb(). wl_get_peb() works exactly like __wl_get_peb() but wl_get_wle() does not call produce_free_peb(). While refilling the fastmap user pool we cannot release ubi->wl_lock as produce_free_peb() does. Hence the fastmap logic uses now wl_get_wle().

[PATCH 3/6] UBI: Fastmap: Ensure that all fastmap work is done upon WL shutdown

2014-11-24 Thread Richard Weinberger
...otherwise the deferred work might run after datastructures got freed and corrupt memory. Signed-off-by: Richard Weinberger --- drivers/mtd/ubi/wl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mtd/ubi/wl.c b/drivers/mtd/ubi/wl.c index 7f135df..cb2e571 100644 ---

[PATCH 2/6] UBI: Fastmap: Ensure that only one fastmap work is scheduled

2014-11-24 Thread Richard Weinberger
If the WL pool runs out of PEBs we schedule a fastmap write to refill it as soon as possible. Ensure that only one at a time is scheduled otherwise we might end in a fastmap write storm because writing the fastmap can schedule another write if bitflips are detected. Signed-off-by: Richard

Re: [PATCH v4 1/2] of: Rename "poweroff-source" property to "system-power-controller"

2014-11-24 Thread Johan Hovold
On Mon, Nov 24, 2014 at 01:58:50PM +0100, Romain Perier wrote: > 2014-11-24 12:35 GMT+01:00 Johan Hovold : > > You should also fix the commit message, which claims to define a "helper > > function which is compatible with both properties", something which was > > no longer the case. > > > So I

[PATCH RFC v2 11/12] drivers: soc: samsung: Add support for clock rate save/restore in power domain

2014-11-24 Thread Amit Daniel Kachhap
While turning power domain to on/off, some clocks rates might change and need to be saved/restored in the Exynos7 SOC. This patch adds the framework for saving those clocks before power off and restoring it back after power on operation. Signed-off-by: Amit Daniel Kachhap ---

[PATCH RFC v2 10/12] drivers: soc: samsung: Add support for clock enabling in power domain

2014-11-24 Thread Amit Daniel Kachhap
While turning power domain to on/off, some clocks need to be enabled in the Exynos7 SOC. This patch adds the framework for enabling those clocks before on/off and restoring it back after the operation. Also these list of clocks may be different for on/off operation so not using the generic pm

Fastmap update v2 (pile 1)

2014-11-24 Thread Richard Weinberger
Artem, as requested I'm resending my fastmap work in smaller pieces. This is pile 1 of 7. Rebasing my patches to ubifs.git was a massive PITA because the logging style changes touched a lot of code and almost every patch failed to apply and needed inspection by hand. The first patches are bug

Re: [PATCHv3 2/3] kernel: add support for live patching

2014-11-24 Thread Jiri Kosina
On Mon, 24 Nov 2014, Thomas Gleixner wrote: > > This commit introduces code for the live patching core. It implements > > an ftrace-based mechanism and kernel interface for doing live patching > > of kernel and kernel module functions. > > > > It represents the greatest common functionality set

[PATCH 6/6] UBI: Fastmap: Make ubi_refill_pools() fair

2014-11-24 Thread Richard Weinberger
Currently ubi_refill_pools() first fills the first and then the second one. If only very few free PEBs are available the second pool can get zero PEBs. Change ubi_refill_pools() to distribute free PEBs fair between all pools. Signed-off-by: Richard Weinberger --- drivers/mtd/ubi/wl.c | 77

Re: [PATCH v4 0/5] exynos: Move pmu driver to driver/soc folder and add exynos7 support

2014-11-24 Thread Bartlomiej Zolnierkiewicz
Hi, On Monday, November 24, 2014 07:36:10 AM Amit Daniel Kachhap wrote: > This patch series [1 - 5] performs, > > 1) Moves pmu driver to driver/soc/samsung folder. This is needed as exynos7 is >an arm64 based platform and hence PMU driver should be in driver folder. >Some discussion

[PATCH RFC v2 09/12] drivers: soc: pm_domain: Modify the parent clocks bindings

2014-11-24 Thread Amit Daniel Kachhap
This patch updates the parent clock bindings to make it more generic. The current bindings limits the transient parent clocks to just one clock as "oscclk". This patch extends it to allow any clock as intermediate parent clock. The reparent clock sets are of form tclkX, pclkX, clkX where X:0-9.

[PATCH RFC v2 08/12] soc: samsung: pm_domain: Add support for parent power domain

2014-11-24 Thread Amit Daniel Kachhap
This patch adds supports for parent power domain. This will ensure invoking of parent/child power domain on/off in a correct sequence. In exynos7 SOC's, power domain controllers have parent and child hierarchy. Cc: Kukjin Kim Signed-off-by: Amit Daniel Kachhap ---

[PATCH RFC v2 07/12] PM / Domains: export pm_genpd_lookup_name

2014-11-24 Thread Amit Daniel Kachhap
This API may be needed to set the power domain parent/child relationship in the power domain platform driver. The parent relationship is generally set after the child power domain is registered with the power domain subsystem. In this case, pm_genpd_lookup_name API might be useful. Signed-off-by:

Re: [5/5] i2c: davinci: use ICPFUNC to toggle I2C as gpio for bus recovery

2014-11-24 Thread Grygorii Strashko
Hi Uwe, On 11/23/2014 07:04 PM, Uwe Kleine-König wrote: > On Thu, Nov 20, 2014 at 12:03:08PM +0200, Grygorii Strashko wrote: >> @@ -664,6 +759,7 @@ static int davinci_i2c_probe(struct platform_device >> *pdev) >> if (!of_property_read_u32(pdev->dev.of_node, "clock-frequency", >>

Re: [PATCH 1/3] eeprom-93cx6: Add (read-only) support for 8-bit mode

2014-11-24 Thread Hannes Reinecke
On 11/24/2014 01:11 PM, Ondrej Zary wrote: > Add read-only support for EEPROMs configured in 8-bit mode (ORG pin connected > to GND). > This will be used by wd719x driver. > > Signed-off-by: Ondrej Zary Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke

[PATCH RFC v2 06/12] driver: soc: exynos-pmu: Add exynos7 power domain on/off ops

2014-11-24 Thread Amit Daniel Kachhap
This patch uses the restructuring done in PD handlers and adds PD on/off/status handlers for exynos7. In this SoC, some extra settings need to be done prior to turning on/off power domains. Some of those settings are also different from different power domains so is uses the power domain

Re: [PATCH 2/3] wd719x: Introduce Western Digital WD7193/7197/7296 PCI SCSI card driver

2014-11-24 Thread Hannes Reinecke
On 11/24/2014 01:11 PM, Ondrej Zary wrote: > Introduce wd719x, a driver for Western Digital WD7193, WD7197 and WD7296 PCI > SCSI controllers based on WD33C296A chip. > Tested with WD7193 card. > > Reviewed-by: Christoph Hellwig > Signed-off-by: Ondrej Zary > --- > drivers/scsi/Kconfig |8

[PATCH RFC v2 05/12] soc: samsung: pm_domain: Use unique compatible name for power domain

2014-11-24 Thread Amit Daniel Kachhap
This patch adds support for second optional compatible complate name. If this compatible name is present then this name will be used to create the Power Domain and not the DT node name. This will be useful to carry out any power domain specific changes in the PD on/off handlers for new SoCs. This

[PATCH RFC v2 04/12] soc: samsung: Re-structure PMU driver to create pd on/off handlers

2014-11-24 Thread Amit Daniel Kachhap
This patch moves PD domain on/off implementation inside the PMU driver. The handlers will be supplied via the MFD platform data. Power domains are basically sparse memories in the Exynos PMU controllers, so with this restructuring all the register access operations reside inside pmu file. This

[PATCH V2 2/2] arm64: exynos: Add bus1 pinctrl node on exynos7

2014-11-24 Thread Vivek Gautam
BUS1 pinctrl provides gpios for usb and power regulator available on exynos7-espresso board. So add relevant device node for pinctrl-bus1. Signed-off-by: Naveen Krishna Ch Signed-off-by: Vivek Gautam --- This patch was part of series: "[PATCH 00/11] Exynos7: Adding USB 3.0 support"

Re: [patch 01/16] irqdomain: Introduce new interfaces to support hierarchy irqdomains

2014-11-24 Thread Thomas Gleixner
On Mon, 24 Nov 2014, Yun Wu (Abel) wrote: > Hi Thomas, Jiang, > On 2014/11/12 21:42, Thomas Gleixner wrote: > > > From: Jiang Liu > > > [...] > > /* Number of irqs reserved for a legacy isa controller */ > > #define NUM_ISA_INTERRUPTS 16 > > @@ -64,6 +66,16 @@ struct irq_domain_ops { > >

[PATCH RFC v2 03/12] soc: samsung: exynos-pmu: Register exynos pd driver as a mfd client

2014-11-24 Thread Amit Daniel Kachhap
This is used to probe exynos power domain. This method can be also used for probing other PMU client drivers like pm sleep etc. Currently no platform data is supplied but can be easily extended when required. Reviewed-by: Pankaj Dubey Signed-off-by: Amit Daniel Kachhap ---

[PATCH RFC v2 02/12] soc: exynos: Move exynos power domain file to driver/soc/samsung folder

2014-11-24 Thread Amit Daniel Kachhap
This patch moves arch/arm/mach-exynos/pm_domains.c to driver/soc/samsung folder. In this way it can be used for both arm and arm64 platforms. This file is moved in this directory as this driver is soc specific and only used by exynos platforms. Cc: Kukjin Kim Signed-off-by: Amit Daniel Kachhap

[PATCH RFC v2 01/12] arm: exynos: Add platform driver support for power domain driver

2014-11-24 Thread Amit Daniel Kachhap
This patch modifies Exynos Power Domain driver initialization implementation in following way: - Added platform driver support and probe function where Exynos PM Domain driver will finally register itself as MFD PMU client driver. In this way,all the Exynos power domains are probed

Re: [PATCH] usb:phy: propagate __of_usb_find_phy()'s error on failure

2014-11-24 Thread Thierry Reding
On Thu, Nov 20, 2014 at 09:23:36PM +0530, Arjun Sreedharan wrote: > When __of_usb_find_phy() fails, it returns -ENODEV - its > error code has to be returned by devm_usb_get_phy_by_phandle(). > Only when the former function succeeds and try_module_get() > fails should -EPROBE_DEFER be returned. >

[PATCH V2 1/2] pinctrl: exynos: Add BUS1 pin controller for exynos7

2014-11-24 Thread Vivek Gautam
USB and Power regulator on Exynos7 require gpios available in BUS1 pin controller block. So adding the BUS1 pinctrl support. Signed-off-by: Naveen Krishna Ch Signed-off-by: Vivek Gautam Cc: Linus Walleij --- This patch was part of series: "[PATCH 00/11] Exynos7: Adding USB 3.0 support"

Re: [PATCH v4 1/2] of: Rename "poweroff-source" property to "system-power-controller"

2014-11-24 Thread Heiko Stübner
Am Montag, 24. November 2014, 14:01:02 schrieb Romain Perier: > 2014-11-24 13:58 GMT+01:00 Romain Perier : > > So I need to resend this patch which would only introduce an helper > > function which checks for "system-power-controller" property (it would > > also have a new commit message). > > As

[PATCH/RFC 5/7] mips: Replace ACCESS_ONCE in gup with a barrier

2014-11-24 Thread Christian Borntraeger
ACCESS_ONCE does not work reliably on non-scalar types. For example gcc 4.6 and 4.7 might remove the volatile tag for such accesses during the SRA (scalar replacement of aggregates) step https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58145) Let's use a barrier instead of ACCESS_ONCE to avoid that

[PATCH/RFC 3/7] x86: Rework ACCESS_ONCE for spinlock code

2014-11-24 Thread Christian Borntraeger
ACCESS_ONCE does not work reliably on non-scalar types. For example gcc 4.6 and 4.7 might remove the volatile tag for such accesses during the SRA (scalar replacement of aggregates) step (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58145) Change the spinlock code to access the union members with

[PATCH/RFC 0/7] ACCESS_ONCE and non-scalar accesses

2014-11-24 Thread Christian Borntraeger
As discussed on LKML http://marc.info/?i=54611D86.4040306%40de.ibm.com ACCESS_ONCE might fail with specific compiler for non-scalar accesses. Here is a set of patches to tackle that problem. (The first patch is already in kvm/next). The last patch will force ACCESS_ONCE to error-out if it is used

[PATCH/RFC 2/7] mm: replace page table access via ACCESS_ONCE with barriers

2014-11-24 Thread Christian Borntraeger
ACCESS_ONCE does not work reliably on non-scalar types. For example gcc 4.6 and 4.7 might remove the volatile tag for such accesses during the SRA (scalar replacement of aggregates) step (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58145) Let's change the code to access the page table elements

[PATCH 1/7] KVM: s390: Fix ipte locking

2014-11-24 Thread Christian Borntraeger
ipte_unlock_siif uses cmpxchg to replace the in-memory data of the ipte lock together with ACCESS_ONCE for the intial read. union ipte_control { unsigned long val; struct { unsigned long k : 1; unsigned long kh : 31; unsigned long

Re: [PATCH v2 1/5] misc: sensorhub: Add sensorhub driver

2014-11-24 Thread Karol Wrona
On 11/24/2014 01:35 PM, Arnd Bergmann wrote: On Monday 24 November 2014 12:39:12 Karol Wrona wrote: It is possible that it can serve as input device sth else. So you are right about MFD. The structure of mfd directory is flat. I wonder what can be better: just putting these sources inside mfd

[PATCH/RFC 4/7] x86: Replace ACCESS_ONCE in gup with a barrier

2014-11-24 Thread Christian Borntraeger
ACCESS_ONCE does not work reliably on non-scalar types. For example gcc 4.6 and 4.7 might remove the volatile tag for such accesses during the SRA (scalar replacement of aggregates) step (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58145) Let's use a barrier instead of ACCESS_ONCE to avoid that

[PATCH/RFC 7/7] kernel: Force ACCESS_ONCE to work only on scalar types

2014-11-24 Thread Christian Borntraeger
ACCESS_ONCE does not work reliably on non-scalar types. For example gcc 4.6 and 4.7 might remove the volatile tag for such accesses during the SRA (scalar replacement of aggregates) steps. see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58145 This patch is based on an initial proof-of-concept

[PATCH/RFC 6/7] arm64: Replace ACCESS_ONCE for spinlock code with barriers

2014-11-24 Thread Christian Borntraeger
ACCESS_ONCE does not work reliably on non-scalar types. For example gcc 4.6 and 4.7 might remove the volatile tag for such accesses during the SRA (scalar replacement of aggregates) step (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58145) Change the spinlock code to access the lock with a

[PATCH 3/4] devicetree: add a binding for a group of regulator

2014-11-24 Thread Alban Bedel
Signed-off-by: Alban Bedel --- .../devicetree/bindings/regulator/group.txt| 26 ++ 1 file changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/group.txt diff --git a/Documentation/devicetree/bindings/regulator/group.txt

[PATCH 1/4] devicetree: add a binding for a regulator that constrains its supply

2014-11-24 Thread Alban Bedel
Signed-off-by: Alban Bedel --- .../bindings/regulator/constrained-supply.txt | 29 ++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/constrained-supply.txt diff --git

[PATCH 2/4] regulator: add a regulator that constrain its supply

2014-11-24 Thread Alban Bedel
This driver is meant for devices that are supplied by a settable regulator but that don't set their supply voltage explicitly. With this reglator those simple driver can just get and enable the regulator and they will get the correct voltage. Signed-off-by: Alban Bedel ---

[PATCH 4/4] regulator: add a regulator group driver

2014-11-24 Thread Alban Bedel
This driver allow using simple driver that expect a single regulator on hardware that need to enable several regulators. Optionally the driver can enforce the enable and disable order to provide a simple power sequencing. Signed-off-by: Alban Bedel --- drivers/regulator/Kconfig | 8 +++

Re: [PATCH v4 1/2] of: Rename "poweroff-source" property to "system-power-controller"

2014-11-24 Thread Romain Perier
2014-11-24 13:58 GMT+01:00 Romain Perier : > 2014-11-24 12:35 GMT+01:00 Johan Hovold : >> On Mon, Nov 24, 2014 at 10:24:56AM +, Lee Jones wrote: >>> On Fri, 21 Nov 2014, Johan Hovold wrote: >>> > On Thu, Nov 13, 2014 at 01:34:58PM +, Auto Configured wrote: >>> > > From: Romain Perier >>>

[PATCH RFC v2 00/12] soc: samsung: Modify and enhance power domain driver

2014-11-24 Thread Amit Daniel Kachhap
Posting this series as RFC to get more clarity as lot of power domain related discussion is happening in mailing lists. This patch series[1 - 12] performs several implementations as listed below, 1) Converts power domain driver to platform driver. 2) Registers this driver as MFD client driver.

Re: [PATCH v4 1/2] of: Rename "poweroff-source" property to "system-power-controller"

2014-11-24 Thread Romain Perier
2014-11-24 12:35 GMT+01:00 Johan Hovold : > On Mon, Nov 24, 2014 at 10:24:56AM +, Lee Jones wrote: >> On Fri, 21 Nov 2014, Johan Hovold wrote: >> > On Thu, Nov 13, 2014 at 01:34:58PM +, Auto Configured wrote: >> > > From: Romain Perier >> > > >> > > It reverts commit a4b4e0461ec5 ("of:

Re: [PATCH v3 04/41] virtio: memory access APIs

2014-11-24 Thread Geert Uytterhoeven
On Mon, Nov 24, 2014 at 1:15 PM, Michael S. Tsirkin wrote: > On Mon, Nov 24, 2014 at 01:03:24PM +0100, Geert Uytterhoeven wrote: >> On Mon, Nov 24, 2014 at 12:52 PM, Michael S. Tsirkin wrote: >> > virtio 1.0 makes all memory structures LE, so >> > we need APIs to conditionally do a byteswap on

Re: [PATCH 0/5] MODSIGN: Use PKCS#7 for module signatures

2014-11-24 Thread David Howells
Dmitry Kasatkin wrote: > Actually after cleaning the tree and re-signing the modules, I get following > > Unrecognized character \x7F; marked by <-- HERE after <-- HERE near > column 1 at ./scripts/sign-file line 1. > make[1]: *** [arch/x86/crypto/aes-x86_64.ko] Error 255 warthog>grep -r

Re: [PATCH 0/5] MODSIGN: Use PKCS#7 for module signatures

2014-11-24 Thread David Howells
Dmitry Kasatkin wrote: > > (2) Makes use of the PKCS#7 facility to provide module signatures. > > > > sign-file is replaced with a program that generates a PKCS#7 message > > that has no X.509 certs embedded and that has detached data (the > > module content) and adds it onto the

Re: [PATCH 3/5] PKCS#7: Allow detached data to be supplied for signature checking purposes

2014-11-24 Thread David Howells
Mimi Zohar wrote: > Ok, PCKS#7 supports detached data. I assume this is not needed for > kernel modules. What is the motivation for adding this support to the > kernel? See patch #5. I should probably note that in the commit message. David -- To unsubscribe from this list: send the line

Re: [PATCHv10 2/5] x86: Hook up execveat system call.

2014-11-24 Thread Thomas Gleixner
On Mon, 24 Nov 2014, David Drysdale wrote: > Hook up x86-64, i386 and x32 ABIs. > > Signed-off-by: David Drysdale Reviewed-by: Thomas Gleixner -- 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

Re: [PATCH V2 RESEND] arm: dts: Exynos5: Use pmu_system_controller phandle for dp phy

2014-11-24 Thread Javier Martinez Canillas
Hello Vivek, Thierry, On 11/24/2014 12:29 PM, Vivek Gautam wrote: >> Yes. Back at the time a decision was made that device trees need to be >> stable ABI because eventually they'd be shipped with the device rather >> than the distribution. As such it may not at all be possible to update >> them

[LKP] [net] 4ed2d765dfa:

2014-11-24 Thread Yuanhan Liu
FYI, we noticed the below changes on commit 4ed2d765dfaccff5ebdac68e2064b59125033a3b ("net-timestamp: TCP timestamping") testbox/testcase/testparams: vm-vp-2G/ltp/syscalls e7fd2885385157d4 4ed2d765dfaccff5ebdac68e20 -- fail:runs

Re: [PATCH v2 1/5] misc: sensorhub: Add sensorhub driver

2014-11-24 Thread Arnd Bergmann
On Monday 24 November 2014 12:39:12 Karol Wrona wrote: > It is possible that it can serve as input device sth else. So you are > right about MFD. > > The structure of mfd directory is flat. I wonder what can be better: > just putting these sources inside mfd dir or to some new category inside

Re: [PATCH v4 0/6] Touchscreen performance related fixes

2014-11-24 Thread Sebastian Andrzej Siewior
On 11/24/2014 01:16 PM, Vignesh R wrote: > I have tried running both IIO and TSC at the same time. But I have never > seen WARN_ON() even after running for close to 30 min. Can you send me > the exact script, so that it will be easy to reproduce? Sure thing. - one shell evtest

Re: [PATCH 0/5] MODSIGN: Use PKCS#7 for module signatures

2014-11-24 Thread Dmitry Kasatkin
On 20/11/14 18:53, David Howells wrote: > Here's a set of patches that does the following: > > (1) Extracts both parts of an X.509 AuthorityKeyIdentifier (AKID) extension. > We already extract the bit that can match the subjectKeyIdentifier (SKID) > of the parent X.509 cert, but we

Re: [patch 01/16] irqdomain: Introduce new interfaces to support hierarchy irqdomains

2014-11-24 Thread Yun Wu (Abel)
Hi Thomas, Jiang, On 2014/11/12 21:42, Thomas Gleixner wrote: > From: Jiang Liu > [...] > /* Number of irqs reserved for a legacy isa controller */ > #define NUM_ISA_INTERRUPTS 16 > @@ -64,6 +66,16 @@ struct irq_domain_ops { > int (*xlate)(struct irq_domain *d, struct device_node

Re: [PATCH v4 6/7] iio: dummy: Demonstrate the usage of new channel types

2014-11-24 Thread Daniel Baluta
On Sat, Nov 22, 2014 at 1:18 PM, Jonathan Cameron wrote: > On 22/11/14 11:05, Jonathan Cameron wrote: >> On 10/11/14 12:45, Daniel Baluta wrote: >>> Adds support for the new channel types in the dummy driver: >>> * a new channel IIO_ACTIVITY >>> * two state transition events (running and

[PATCH v2 3/3] ARM: tegra: Add Tegra124 ACTMON support

2014-11-24 Thread Tomeu Vizoso
Add device node for the ACTMON block to the Tegra124 device tree. Signed-off-by: Tomeu Vizoso --- v2: * Add operating-points property --- arch/arm/boot/dts/tegra124.dtsi | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/boot/dts/tegra124.dtsi

[PATCH v2 2/3] PM / devfreq: tegra: add devfreq driver for Tegra Activity Monitor

2014-11-24 Thread Tomeu Vizoso
The ACTMON block can monitor several counters, providing averaging and firing interrupts based on watermarking configuration. This implementation monitors the MCALL and MCCPU counters to choose an appropriate frequency for the external memory clock. This patch is based on work by Alex Frid and

[PATCH v2 1/3] of: Add binding for NVIDIA Tegra ACTMON node

2014-11-24 Thread Tomeu Vizoso
This block gathers statistics about various counters and can be configured to fire interrupts when thresholds are crossed. Signed-off-by: Tomeu Vizoso --- v2: * Add operating-points property --- .../devicetree/bindings/arm/tegra/actmon.txt | 38 ++ 1 file

[PATCH v2 0/3] Add support for Tegra Activity Monitor

2014-11-24 Thread Tomeu Vizoso
Hello, in this v2 I have made the driver use devfreq. It works just as fine as the previous revision, but it's almost 200 lines more of code for not that much gain. Though I don't see much point in using devfreq, I think it's probably better than an ad-hoc driver because in the future I hope

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