[PATCH v9 0/4] Add generic driver for on-chip SRAM

2013-02-13 Thread Philipp Zabel
These patches add support to configure on-chip SRAM via device-tree node or platform data and to obtain the resulting genalloc pool from the struct device pointer or a phandle pointing at the device tree node. This allows drivers to allocate SRAM with the genalloc API without hard-coding the

[PATCH v9 2/4] misc: Generic on-chip SRAM allocation driver

2013-02-13 Thread Philipp Zabel
This driver requests and remaps a memory region as configured in the device tree. It serves memory from this region via the genalloc API. It optionally enables the SRAM clock. Other drivers can retrieve the genalloc pool from a phandle pointing to this drivers' device node in the device tree.

[PATCH v9 4/4] ARM: dts: add sram for imx53 and imx6q

2013-02-13 Thread Philipp Zabel
Signed-off-by: Philipp Zabel Reviewed-by: Shawn Guo Acked-by: Grant Likely --- Changes since v8: - Changed device tree compatible string to "mmio-sram" --- arch/arm/boot/dts/imx53.dtsi |5 + arch/arm/boot/dts/imx6q.dtsi |6 ++ 2 files changed, 11 insertions(+) diff --git

Re: [patch v4 08/18] Revert "sched: Introduce temporary FAIR_GROUP_SCHED dependency for load-tracking"

2013-02-13 Thread Paul Turner
On Wed, Feb 13, 2013 at 7:23 AM, Alex Shi wrote: > On 02/12/2013 06:27 PM, Peter Zijlstra wrote: >> On Thu, 2013-01-24 at 11:06 +0800, Alex Shi wrote: >>> Remove CONFIG_FAIR_GROUP_SCHED that covers the runnable info, then >>> we can use runnable load variables. >>> >> It would be nice if we could

Re: [RFC PATCH] virt_mmio: fix signature checking for BE guests

2013-02-13 Thread Pawel Moll
On Wed, 2013-02-13 at 15:28 +, Marc Zyngier wrote: > >> Fix it by encoding the magic as an integer instead of a string. > >> So I'm not completely sure this is the right fix, > > > > It seems right, however... > > > >> - Using __raw_readl() instead. Is that a generic enough API? > >> > >

Re: [patch v4 07/18] sched: set initial load avg of new forked task

2013-02-13 Thread Paul Turner
On Wed, Feb 13, 2013 at 7:14 AM, Alex Shi wrote: > On 02/12/2013 06:26 PM, Peter Zijlstra wrote: >> On Thu, 2013-01-24 at 11:06 +0800, Alex Shi wrote: >>> + /* >>> +* set the initial load avg of new task same as its load >>> +* in order to avoid brust fork make few cpu too

Re: [patch v4 09/18] sched: add sched_policies in kernel

2013-02-13 Thread Alex Shi
On 02/12/2013 06:36 PM, Peter Zijlstra wrote: > On Thu, 2013-01-24 at 11:06 +0800, Alex Shi wrote: >> Current scheduler behavior is just consider the for larger performance >> of system. So it try to spread tasks on more cpu sockets and cpu cores >> >> To adding the consideration of power

Re: [PATCH] memcg: Add memory.pressure_level events

2013-02-13 Thread Greg Thelen
On Tue, Feb 12 2013, Anton Vorontsov wrote: > Hi Greg, > > Thanks for taking a look! > > On Tue, Feb 12, 2013 at 10:42:51PM -0800, Greg Thelen wrote: > [...] >> > +static bool vmpressure_event(struct vmpressure *vmpr, >> > + unsigned long s, unsigned long r) >> > +{ >> > +

Re: [PATCH] x86, kvm: Add MSR_AMD64_BU_CFG2 to the list of ignored MSRs

2013-02-13 Thread Gleb Natapov
On Wed, Feb 13, 2013 at 12:42:41PM +0100, Borislav Petkov wrote: > From: Borislav Petkov > > The "x86, AMD: Enable WC+ memory type on family 10 processors" patch > currently in -tip added a workaround for AMD F10h CPUs which #GPs my > guest when booted in kvm. This is because it accesses

[PATCH linux-next v2] lockd: nlmclnt_reclaim(): avoid stack overflow

2013-02-13 Thread Tim Gardner
Even though nlmclnt_reclaim() is only one call into the stack frame, 928 bytes on the stack seems like a lot. Recode to dynamically allocate the request structure once from within the reclaimer task, then pass this pointer into nlmclnt_reclaim() for reuse on subsequent calls. smatch analysis:

Re: [PATCH 2/2] ima: Support appraise_type=imasig_optional

2013-02-13 Thread Vivek Goyal
On Wed, Feb 13, 2013 at 05:29:43PM +0200, Kasatkin, Dmitry wrote: > On Wed, Feb 13, 2013 at 5:26 PM, Kasatkin, Dmitry > wrote: > > On Wed, Feb 13, 2013 at 4:38 PM, Vivek Goyal wrote: > >> On Wed, Feb 13, 2013 at 03:36:45PM +0200, Kasatkin, Dmitry wrote: > >>> It should not be the only line in

Re: [PATCH] x86, kvm: Add MSR_AMD64_BU_CFG2 to the list of ignored MSRs

2013-02-13 Thread Gleb Natapov
On Wed, Feb 13, 2013 at 02:35:49PM +0100, Borislav Petkov wrote: > On Wed, Feb 13, 2013 at 02:10:02PM +0200, Gleb Natapov wrote: > > > > Is your guest compiled without PV support? With PV Linux traps #GP for > > > > all MSRs and it saves us in more than one places. > > > > > > Yes,

[PATCH] leds-ot200: Fix misbehavior caused by wrong bit masks

2013-02-13 Thread Christian Gmeiner
During the development of this driver an in-house register documentation was used. The last weeks some integration tests were done and this problem was found. It turned out that the released register documentation is wrong. The fix is very simple: shift all masks by one. Our customers can

Re: [PATCH v2 00/14] Corrections and customization of the SG_IO command whitelist (CVE-2012-4542)

2013-02-13 Thread Douglas Gilbert
On 13-02-13 03:32 AM, Paolo Bonzini wrote: Il 06/02/2013 16:15, Paolo Bonzini ha scritto: This series regards the whitelist that is used for the SG_IO ioctl. This whitelist has three problems: * the bitmap of allowed commands is designed for MMC devices (roughly, "play/burn CDs without

Re: [ 68/89] xfs: fix _xfs_buf_find oops on blocks beyond the filesystem end

2013-02-13 Thread Paolo Bonzini
Il 01/02/2013 14:08, Greg Kroah-Hartman ha scritto: > 3.7-stable review patch. If anyone has any objections, please let me know. > > -- > > From: Dave Chinner > > commit eb178619f930fa2ba2348de332a1ff1c66a31424 upstream. > > When _xfs_buf_find is passed an out of range

Re: [PATCH 2/2] ima: Support appraise_type=imasig_optional

2013-02-13 Thread Kasatkin, Dmitry
On Wed, Feb 13, 2013 at 5:26 PM, Kasatkin, Dmitry wrote: > On Wed, Feb 13, 2013 at 4:38 PM, Vivek Goyal wrote: >> On Wed, Feb 13, 2013 at 03:36:45PM +0200, Kasatkin, Dmitry wrote: >>> It should not be the only line in the policy. >>> Can you share full policy? >> >> I verified by putting some

Re: [PATCH v3] sched: fix wrong rq's runnable_avg update with rt task

2013-02-13 Thread Paul Turner
On Wed, Feb 13, 2013 at 12:54 AM, Vincent Guittot wrote: > When a RT task is scheduled on an idle CPU, the update of the rq's load is > not done because CFS's functions are not called. Then, the idle_balance, > which is called just before entering the idle function, updates the > rq's load and

Re: [RFC PATCH] virt_mmio: fix signature checking for BE guests

2013-02-13 Thread Marc Zyngier
On 13/02/13 15:08, Pawel Moll wrote: > On Wed, 2013-02-13 at 14:25 +, Marc Zyngier wrote: >> Using readl() to read the magic value and then memcmp() to check it >> fails on BE, as bytes will be the other way around (by virtue of >> the registers to follow the endianess of the guest). > > Hm.

Re: [PATCH 2/2] ima: Support appraise_type=imasig_optional

2013-02-13 Thread Kasatkin, Dmitry
On Wed, Feb 13, 2013 at 4:38 PM, Vivek Goyal wrote: > On Wed, Feb 13, 2013 at 03:36:45PM +0200, Kasatkin, Dmitry wrote: >> It should not be the only line in the policy. >> Can you share full policy? > > I verified by putting some printk. There is only single rule in > ima_policy_rules list after

Re: [patch v4 08/18] Revert "sched: Introduce temporary FAIR_GROUP_SCHED dependency for load-tracking"

2013-02-13 Thread Alex Shi
On 02/12/2013 06:27 PM, Peter Zijlstra wrote: > On Thu, 2013-01-24 at 11:06 +0800, Alex Shi wrote: >> Remove CONFIG_FAIR_GROUP_SCHED that covers the runnable info, then >> we can use runnable load variables. >> > It would be nice if we could quantify the performance hit of doing so. > Haven't yet

Re: BUG at net/sunrpc/svc_xprt.c:921 (another one)

2013-02-13 Thread Mark Lord
On 13-02-12 03:52 PM, J. Bruce Fields wrote: > On Sun, Jan 20, 2013 at 05:51:12PM -0500, Mark Lord wrote: >> Got it again, this time on a different system >> running mostly the same software. > > Mark, Paweł, Tom, could any of you confirm whether this helps? .. No, I cannot confirm one way or

[PATCH] Enhanced support for MPC8xx/8xxx watchdog

2013-02-13 Thread Christophe Leroy
This patch modifies the behaviour of the MPC8xx/8xxx watchdog. On the MPC8xx, at 133Mhz, the maximum timeout of the watchdog timer is 1s, which means it must be pinged twice a second. This is not in line with the Linux watchdog concept which is based on a default watchdog timeout around 60s. This

Re: [PATCH 0/3] scheduler include file reorganization

2013-02-13 Thread Clark Williams
On Wed, 13 Feb 2013 10:15:12 +0100 Ingo Molnar wrote: > > * Namhyung Kim wrote: > > > Hi, > > > > On Mon, 11 Feb 2013 10:54:58 +0100, Ingo Molnar wrote: > > > * Clark Williams wrote: > > > > > >> I figured that was coming. :) > > > > > > ;-) > > > > > >> I'll look at it again and see about

[PATCH] ptrace: add ability to retrieve signals without removing them from a queue

2013-02-13 Thread Andrey Vagin
This patch adds a new ptrace request PTRACE_PEEKSIGINFO. This request is used to retrieve information about a signal with the specified sequence number. A siginfo_t structure is copied from the child to location data in the parent. The low 16 bits of addr contains a sequence number of signal in

Re: [patch v4 07/18] sched: set initial load avg of new forked task

2013-02-13 Thread Alex Shi
On 02/12/2013 06:26 PM, Peter Zijlstra wrote: > On Thu, 2013-01-24 at 11:06 +0800, Alex Shi wrote: >> + /* >> +* set the initial load avg of new task same as its load >> +* in order to avoid brust fork make few cpu too heavier >> +*/ >> + if (flags &

[PATCH v3 2/2] lib/scatterlist: use page iterator in the mapping iterator

2013-02-13 Thread Imre Deak
For better code reuse use the newly added page iterator to iterate through the pages. The offset, length within the page is still calculated by the mapping iterator as well as the actual mapping. Idea from Tejun Heo . Signed-off-by: Imre Deak --- include/linux/scatterlist.h |6 +++---

[PATCH v3 1/2] lib/scatterlist: add simple page iterator

2013-02-13 Thread Imre Deak
Add an iterator to walk through a scatter list a page at a time starting at a specific page offset. As opposed to the mapping iterator this is meant to be small, performing well even in simple loops like collecting all pages on the scatterlist into an array or setting up an iommu table based on

Re: [RFC PATCH] virt_mmio: fix signature checking for BE guests

2013-02-13 Thread Pawel Moll
On Wed, 2013-02-13 at 14:25 +, Marc Zyngier wrote: > Using readl() to read the magic value and then memcmp() to check it > fails on BE, as bytes will be the other way around (by virtue of > the registers to follow the endianess of the guest). Hm. Interesting. I missed the fact that readl() as

Re: [patch v4 03/18] sched: fix find_idlest_group mess logical

2013-02-13 Thread Alex Shi
On 02/12/2013 06:16 PM, Peter Zijlstra wrote: > On Thu, 2013-01-24 at 11:06 +0800, Alex Shi wrote: >> There is 4 situations in the function: >> 1, no task allowed group; >> so min_load = ULONG_MAX, this_load = 0, idlest = NULL >> 2, only local group task allowed; >> so min_load =

Re: [PATCH] Congatec CGEB base, i2c and watchdog driver support

2013-02-13 Thread Christian Gmeiner
2013/2/12 Sascha Hauer : > I'd like to come back to this topic. I have sent patches last year > already, changes to the last time I posted this is mainly that > I moved the CGEB base support from drivers/mfd/ to arch/x86/platform/ > like suggested by Samuel Ortiz back then. > > The following

Re: [PATCH v2] staging/comedi: Fix undefined array subscript

2013-02-13 Thread Dan Carpenter
Looks great. :) Thanks for fixing this bug. regards, dan -- 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

Re: [PATCH v2] lib/scatterlist: add simple page iterator

2013-02-13 Thread Imre Deak
On Tue, 2013-02-12 at 09:13 -0800, Tejun Heo wrote: > Hello, > > On Tue, Feb 12, 2013 at 07:07:20PM +0200, Imre Deak wrote: > > It's the one implemented by sg_miter_{start,stop} in scatterlist.c. It > > also iterates through a scatterlist a page at a time, but it also kmaps > > these pages. Since

Re: [PATCH 0/4] rwsem: Implement writer lock-stealing

2013-02-13 Thread Ingo Molnar
* Alex Shi wrote: > On 02/09/2013 10:45 AM, Michel Lespinasse wrote: > > This proposal implements writer lock stealing in lib/rwsem.c, just as > > Alex Shi's earlier proposal did for the simpler lib/rwsem-spinlock.c > > Ops, my patch in tip/urgent is for rwsem. Yuanhan's patch is > for

Re: [patch v4 02/18] sched: select_task_rq_fair clean up

2013-02-13 Thread Alex Shi
On 02/12/2013 06:14 PM, Peter Zijlstra wrote: > On Thu, 2013-01-24 at 11:06 +0800, Alex Shi wrote: >> It is impossible to miss a task allowed cpu in a eligible group. > > I suppose your reasoning goes like: tsk->cpus_allowed is protected by > ->pi_lock, we hold this, therefore it cannot change

Re: [PATCH linux-next] lockd: nlmsvc_mark_resources(): avoid stack overflow

2013-02-13 Thread Tim Gardner
On 02/12/2013 02:22 PM, J. Bruce Fields wrote: > On Tue, Feb 12, 2013 at 12:48:58PM -0700, Tim Gardner wrote: >> Dynamically allocate the NLM host structure in order to avoid stack overflow. >> nlmsvc_mark_resources() is several call levels deep in a stack >> that has a number of large variables.

Re: [PATCH 2/2] ima: Support appraise_type=imasig_optional

2013-02-13 Thread Vivek Goyal
On Wed, Feb 13, 2013 at 03:36:45PM +0200, Kasatkin, Dmitry wrote: > It should not be the only line in the policy. > Can you share full policy? I verified by putting some printk. There is only single rule in ima_policy_rules list after I have updated the rules through "policy" file. echo

Re: SELinux + ubifs: possible circular locking dependency

2013-02-13 Thread Marc Kleine-Budde
On 02/13/2013 01:47 PM, Artem Bityutskiy wrote: >> I'm on a arm imx28 v3.8-rc6 (+ a handfull of patches to support the >> custom board) but no modifications on ubifs, selinux or the vfs layer. >> And not including the xattr patches by Subodh Nijsure. >> >> When booting with SELinux and lockdep

Re: [tip:x86/mm] x86/kvm: Fix compile warning in kvm_register_steal_time()

2013-02-13 Thread Borislav Petkov
On Mon, Feb 11, 2013 at 04:36:02AM -0800, tip-bot for Shuah Khan wrote: > Commit-ID: 136867f517cbc3f8a91f035677911a6b503c3323 > Gitweb: http://git.kernel.org/tip/136867f517cbc3f8a91f035677911a6b503c3323 > Author: Shuah Khan > AuthorDate: Tue, 5 Feb 2013 19:57:22 -0700 > Committer: Ingo

Re: [3.8-rc7] PCI hotplug wakeup oops

2013-02-13 Thread Daniel J Blueman
On 12 February 2013 03:49, Rafael J. Wysocki wrote: > On Monday, February 11, 2013 08:27:49 PM Rafael J. Wysocki wrote: >> On Monday, February 11, 2013 12:01:37 PM Bjorn Helgaas wrote: >> > [+cc Rafael] >> > >> > On Mon, Feb 11, 2013 at 10:08 AM, Daniel J Blueman >> > wrote: >> > > On 11

Re: [PATCH] sched: fix env->src_cpu for active migration

2013-02-13 Thread Vincent Guittot
On 13 February 2013 15:08, Damien Wyart wrote: > * Vincent Guittot [2013-02-13 13:08]: >> Damien, >> Regarding your sched_domain config and especially the flags field, you >> should not be impacted by my patch because >> - need_active_balance is the only new place that use env->src_cpu in >> the

[PATCH RESEND] printk: add pr_devel_once and pr_devel_ratelimited

2013-02-13 Thread Mikhail Gruzdev
Standardize pr_devel logging macros family by adding pr_devel_once and pr_devel_ratelimited. Signed-off-by: Mikhail Gruzdev Cc: Andrew Morton Cc: Greg Kroah-Hartman --- include/linux/printk.h | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git

[RFC PATCH] virt_mmio: fix signature checking for BE guests

2013-02-13 Thread Marc Zyngier
Using readl() to read the magic value and then memcmp() to check it fails on BE, as bytes will be the other way around (by virtue of the registers to follow the endianess of the guest). Fix it by encoding the magic as an integer instead of a string. Cc: Rusty Russell Cc: Michael S. Tsirkin Cc:

[RFC][PATCH RT] acpi/rt: Convert acpi lock back to a raw_spinlock_t

2013-02-13 Thread Steven Rostedt
We hit the following bug with 3.6-rt: [5.898990] BUG: scheduling while atomic: swapper/3/0/0x0002 [5.898991] no locks held by swapper/3/0. [5.898993] Modules linked in: [5.898996] Pid: 0, comm: swapper/3 Not tainted 3.6.11-rt28.19.el6rt.x86_64.debug #1 [5.898997] Call

Re: [PATCH 1/4] of/pci: Provide support for parsing PCI DT ranges property

2013-02-13 Thread Thierry Reding
On Wed, Feb 13, 2013 at 08:23:28AM -0600, Rob Herring wrote: > On 02/12/2013 12:45 AM, Thierry Reding wrote: > > On Mon, Feb 11, 2013 at 01:43:03PM -0600, Rob Herring wrote: > >> On 02/11/2013 02:22 AM, Thierry Reding wrote: > >>> From: Andrew Murray > > >>> @@ -13,6 +13,7 @@ > >>> #define

[PATCH v2] staging/comedi: Fix undefined array subscript

2013-02-13 Thread Peter Huewe
In vmk80xx_do_insn_bits the local variable reg, which is used as an index to the tx_buf array, can be used uninitialized if - data[0] == 0 and - devpriv->model != VMK8061_MODEL -> we get into the else branch without having reg initialized. Since the driver usually differentiates between

Re: [PATCH 1/4] of/pci: Provide support for parsing PCI DT ranges property

2013-02-13 Thread Rob Herring
On 02/12/2013 12:45 AM, Thierry Reding wrote: > On Mon, Feb 11, 2013 at 01:43:03PM -0600, Rob Herring wrote: >> On 02/11/2013 02:22 AM, Thierry Reding wrote: >>> From: Andrew Murray >>> @@ -13,6 +13,7 @@ >>> #define OF_CHECK_COUNTS(na, ns)(OF_CHECK_ADDR_COUNT(na) && (ns) > 0) >>> >>>

Re: [PATCH 2/2] regmap: irq: do not write mask register if it is not supported

2013-02-13 Thread Mark Brown
On Wed, Feb 13, 2013 at 06:44:50PM +0530, Laxman Dewangan wrote: > Ignore the mask register write if mask_base is not provided by > regmap irq client. This is useful when regmap irq framework is > used for the MFD's gpio interrupt support. Typically, gpio has > two registers related to interrupt,

Re: [patch v4 01/18] sched: set SD_PREFER_SIBLING on MC domain to reduce a domain level

2013-02-13 Thread Alex Shi
On 02/12/2013 06:11 PM, Peter Zijlstra wrote: > On Thu, 2013-01-24 at 11:06 +0800, Alex Shi wrote: >> The domain flag SD_PREFER_SIBLING was set both on MC and CPU domain at >> frist commit b5d978e0c7e79a, and was removed uncarefully when clear up >> obsolete power scheduler. Then commit 6956dc568

Re: [PATCH v3 2/2] ARM: OMAP2+: Export SoC information to userspace

2013-02-13 Thread Ruslan Bilovol
On Mon, Feb 11, 2013 at 7:56 PM, Tony Lindgren wrote: > * Ruslan Bilovol [130206 14:54]: >> --- a/arch/arm/mach-omap2/io.c >> +++ b/arch/arm/mach-omap2/io.c >> @@ -602,6 +602,7 @@ void __init omap4430_init_late(void) >> omap2_common_pm_late_init(); >> omap4_pm_init(); >>

Re: [PATCH] sched: fix env->src_cpu for active migration

2013-02-13 Thread Damien Wyart
* Vincent Guittot [2013-02-13 13:08]: > Damien, > Regarding your sched_domain config and especially the flags field, you > should not be impacted by my patch because > - need_active_balance is the only new place that use env->src_cpu in > the load_balance function > - and your machine will never

Re: [PATCH v3] gpio: Add device driver for GRGPIO cores and support custom accessors with gpio-generic

2013-02-13 Thread Andreas Larsson
On 2013-02-13 08:05, Anton Vorontsov wrote: On Tue, Feb 12, 2013 at 08:24:33AM +0100, Andreas Larsson wrote: + res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); + regs = devm_request_and_ioremap(>dev, res); Just wonder, is it safe to pass null res to

[ANNOUNCE] 3.6.11-rt29

2013-02-13 Thread Thomas Gleixner
Dear RT Folks, I'm pleased to announce the 3.6.11-rt29 release. Changes since 3.6.11-rt26: 1) Fix the RT highmem implementation on x86 this time really. The issue I was seeing with kmap_atomic and friends was actually when CONFIG_HIGHMEM was disabled. x8632 uses the atomic maps

RE: [PATCH 1/1] Drivers: hv: vmbus: Use the new infrastructure for delivering VMBUS interrupts

2013-02-13 Thread KY Srinivasan
> -Original Message- > From: H. Peter Anvin [mailto:h...@zytor.com] > Sent: Tuesday, February 12, 2013 7:31 PM > To: Greg KH > Cc: KY Srinivasan; x...@kernel.org; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > jasow...@redhat.com;

Re: [PATCH 2/2] ima: Support appraise_type=imasig_optional

2013-02-13 Thread Mimi Zohar
On Wed, 2013-02-13 at 15:36 +0200, Kasatkin, Dmitry wrote: > It should not be the only line in the policy. > Can you share full policy? > On Wed, Feb 13, 2013 at 3:29 PM, Vivek Goyal wrote: > > > > appraise fowner=0 func=BPRM_CHECK appraise_type=imasig_optional Different use cases require

Re: iio: adc: add exynos5 adc driver under iio framwork

2013-02-13 Thread Lars-Peter Clausen
On 02/13/2013 02:53 PM, Naveen Krishna Ch wrote: [...] >>> ADC driver will use of_platform_populate() to populate the child nodes >>> (ntc thermistors in my case) >>> >>> I've modified the NTC driver to support DT. in probe >>> chan = iio_channel_get(>dev, "adcX"); >>> and using "id" field to use

Re: [PATCH] staging/comedi: Fix undefined array subscript

2013-02-13 Thread Dan Carpenter
This patch works but it's nasty to re-intialize "reg" inside both if else statements. Just do it once at the begining of the function. That means we would also delete the ininitialization from the if side of the if else statement: if (devpriv->model == VMK8061_MODEL) { -

Re: [PATCH v2 09/11] mfd: twl-core: Collect global variables behind one private structure (global)

2013-02-13 Thread Peter Ujfalusi
Hi Jon, On 02/12/2013 05:15 PM, Jon Hunter wrote: > > On 02/12/2013 01:26 AM, Peter Ujfalusi wrote: >> On 02/11/2013 09:22 PM, Jon Hunter wrote: >>> Good point. I just noticed that none of my omap2+ board were booting and >>> on omap3/4 I was the panic in the twl code. I can't say that I checked

Re: [PATCH 0/4] rwsem: Implement writer lock-stealing

2013-02-13 Thread Alex Shi
On 02/09/2013 10:45 AM, Michel Lespinasse wrote: > This proposal implements writer lock stealing in lib/rwsem.c, just as > Alex Shi's earlier proposal did for the simpler lib/rwsem-spinlock.c Ops, my patch in tip/urgent is for rwsem. Yuanhan's patch is for rwsem-spinlock. Thanks Alex -- To

Re: [PATCH 1/2] regmap: irq: Add support for interrupt type

2013-02-13 Thread Mark Brown
On Wed, Feb 13, 2013 at 06:44:49PM +0530, Laxman Dewangan wrote: > Most of the MFD module have the GPIO and gpio interrupt is > enabled/disabled through the rising/falling edge type. There > is no specific mask enable/disable registers for GPIO submodules. > > Extend the regmap irq to support the

Re: iio: adc: add exynos5 adc driver under iio framwork

2013-02-13 Thread Naveen Krishna Ch
On 13 February 2013 19:00, Lars-Peter Clausen wrote: > On 02/13/2013 02:16 PM, Naveen Krishna Ch wrote: >> Please ignore the unfinished previous mail. >> >> >> >> On 13 February 2013 08:18, Naveen Krishna Ch >> wrote: >>> On 13 February 2013 02:37, Guenter Roeck wrote: On Wed, Jan 23,

Re: [PATCH] IB/lmx4: silence GCC warning

2013-02-13 Thread Bart Van Assche
On 10/29/12 10:50, Paul Bolle wrote: On Wed, 2012-10-10 at 09:23 +0200, Jack Morgenstein wrote: You could use: u16 uninitialized_var(vlan); instead. I guess we'd better just wait and see whether uninitialized_var() survives before discussing your suggestion (see the thread starting at

Re: [PATCH 2/2] ima: Support appraise_type=imasig_optional

2013-02-13 Thread Vivek Goyal
On Wed, Feb 13, 2013 at 03:36:45PM +0200, Kasatkin, Dmitry wrote: > It should not be the only line in the policy. So a single rule is not allowed or kernel has imposed more rules internally. > Can you share full policy? How do I get to full policy. Is there an interface I can read it from?

Re: [PATCH 0/4] Various PCI-related device tree helpers

2013-02-13 Thread Thomas Petazzoni
Hello, On Mon, 11 Feb 2013 09:22:16 +0100, Thierry Reding wrote: > Hi, > > These patches add a few device tree helpers that are used are partially > shared by Thomas' Marvell PCIe controller and my Tegra PCIe controller > series. In an attempt to decrease the number of dependencies between >

Re: [PATCH] staging/comedi: Fix undefined array subscript

2013-02-13 Thread Ian Abbott
On 2013-02-13 11:56, Ian Abbott wrote: For a digital output subdevice, you could either read back the current values directly from the hardware or just use the value previously written. The Velleman K8055 doesn't have a command to read back the digital outputs from the hardware, so the last

Re: [PATCH] X.509: Support parse long form of length octets in Authority Key Identifier

2013-02-13 Thread David Howells
Lee, Chun-Yi wrote: > Signed-off-by: Lee, Chun-Yi Without the comma, please. > + /* Short Form length */ > + if (vlen <= 127) { > + > + if (v[1] != vlen - 2 || There's an unnecessary blank line there. I would also move the comment inside the

Re: [PATCH 2/2] ima: Support appraise_type=imasig_optional

2013-02-13 Thread Mimi Zohar
On Wed, 2013-02-13 at 15:13 +0200, Kasatkin, Dmitry wrote: > On Wed, Feb 13, 2013 at 2:56 PM, Mimi Zohar wrote: > > On Wed, 2013-02-13 at 14:31 +0200, Kasatkin, Dmitry wrote: > >> On Mon, Feb 11, 2013 at 10:11 PM, Vivek Goyal wrote: > > > >> > @@ -158,7 +165,8 @@ int ima_appraise_measurement(int

Re: [PATCH v2 00/13] drivers: mailbox: framework creation

2013-02-13 Thread Russell King - ARM Linux
On Wed, Feb 13, 2013 at 02:36:32PM +0100, Linus Walleij wrote: > On Tue, Feb 12, 2013 at 5:56 AM, Suman Anna wrote: > > > I have hosted the series at [3]. > > [3] https://github.com/sumananna/mailbox/commits/dbx500-prcmu-mailbox > > Suman, I suggest you ask Stepgen Rothwell to include this >

Re: [PATCH v2] gpio: devm_gpio_* support should not depend on GPIOLIB

2013-02-13 Thread Shawn Guo
Sorry for the late response due to Chinese New Year Holidays here. On Sun, Feb 10, 2013 at 07:46:30AM +0300, Max Filippov wrote: > On Sat, Jan 19, 2013 at 2:33 AM, Linus Walleij > wrote: > > On Fri, Jan 18, 2013 at 8:57 AM, Shawn Guo wrote: > > > >> Some architectures (e.g. blackfin) provide

Re: [PATCH 2/2] ima: Support appraise_type=imasig_optional

2013-02-13 Thread Kasatkin, Dmitry
It should not be the only line in the policy. Can you share full policy? Thanks, Dmitry On Wed, Feb 13, 2013 at 3:29 PM, Vivek Goyal wrote: > On Wed, Feb 13, 2013 at 02:14:55PM +0200, Kasatkin, Dmitry wrote: >> Hello Vivek, >> >> Can you please send to us how your IMA policy looks like. > > Hi

Re: [PATCH v2 00/13] drivers: mailbox: framework creation

2013-02-13 Thread Linus Walleij
On Tue, Feb 12, 2013 at 5:56 AM, Suman Anna wrote: > I have hosted the series at [3]. > [3] https://github.com/sumananna/mailbox/commits/dbx500-prcmu-mailbox Suman, I suggest you ask Stepgen Rothwell to include this branch into the linux-next tree, so we can get some rotation of this stuff in

Re: [PATCH] x86, kvm: Add MSR_AMD64_BU_CFG2 to the list of ignored MSRs

2013-02-13 Thread Borislav Petkov
On Wed, Feb 13, 2013 at 02:10:02PM +0200, Gleb Natapov wrote: > > > Is your guest compiled without PV support? With PV Linux traps #GP for > > > all MSRs and it saves us in more than one places. > > > > Yes, CONFIG_PARAVIRT_GUEST is not set on the guest kernel. > > > Thanks. It does not mean

Re: [PATCH 2/2] ima: Support appraise_type=imasig_optional

2013-02-13 Thread Vivek Goyal
On Wed, Feb 13, 2013 at 02:14:55PM +0200, Kasatkin, Dmitry wrote: > Hello Vivek, > > Can you please send to us how your IMA policy looks like. Hi Dmitry, For testing purposes, I am using following. appraise fowner=0 func=BPRM_CHECK appraise_type=imasig_optional I set this using

Re: iio: adc: add exynos5 adc driver under iio framwork

2013-02-13 Thread Lars-Peter Clausen
On 02/13/2013 02:16 PM, Naveen Krishna Ch wrote: > Please ignore the unfinished previous mail. > > > > On 13 February 2013 08:18, Naveen Krishna Ch > wrote: >> On 13 February 2013 02:37, Guenter Roeck wrote: >>> On Wed, Jan 23, 2013 at 04:58:06AM -, Naveen Krishna Chatradhi wrote:

[PATCH] of: spi: Return error from of_spi_register_master on bad "cs-gpios" property

2013-02-13 Thread Andreas Larsson
This makes sure that an error is returned on an incorrectly formed "cs-gpios" property, but reports success when the "cs-gpios" property is well formed or missing. When holes in the cs-gpios property phandle list is used to indicate that some other form of chipselect is to be used it is important

Re: [patch v4 01/18] sched: set SD_PREFER_SIBLING on MC domain to reduce a domain level

2013-02-13 Thread Alex Shi
On 02/12/2013 06:11 PM, Peter Zijlstra wrote: > On Thu, 2013-01-24 at 11:06 +0800, Alex Shi wrote: >> The domain flag SD_PREFER_SIBLING was set both on MC and CPU domain at >> frist commit b5d978e0c7e79a, and was removed uncarefully when clear up >> obsolete power scheduler. Then commit 6956dc568

[PATCH] spi: Initialize cs_gpio and cs_gpios with -ENOENT

2013-02-13 Thread Andreas Larsson
The return value from of_get_named_gpio is -ENOENT when the given index matches a hole in the "cs-gpios" property phandle list. However, the default value of cs_gpio in struct spi_device and entries of cs_gpios in struct spi_master is -EINVAL, which is documented to indicate that a GPIO line

Re: iio: adc: add exynos5 adc driver under iio framwork

2013-02-13 Thread Naveen Krishna Ch
Please ignore the unfinished previous mail. On 13 February 2013 08:18, Naveen Krishna Ch wrote: > On 13 February 2013 02:37, Guenter Roeck wrote: >> On Wed, Jan 23, 2013 at 04:58:06AM -, Naveen Krishna Chatradhi wrote: >>> This patch add an ADC IP found on EXYNOS5 series socs from

[PATCH 1/2] regmap: irq: Add support for interrupt type

2013-02-13 Thread Laxman Dewangan
Most of the MFD module have the GPIO and gpio interrupt is enabled/disabled through the rising/falling edge type. There is no specific mask enable/disable registers for GPIO submodules. Extend the regmap irq to support the irq_set_type() so that gpio submodule of MFD devices can use the

[PATCH 2/2] regmap: irq: do not write mask register if it is not supported

2013-02-13 Thread Laxman Dewangan
Ignore the mask register write if mask_base is not provided by regmap irq client. This is useful when regmap irq framework is used for the MFD's gpio interrupt support. Typically, gpio has two registers related to interrupt, one is for setting interrupt edge type like rising and falling which

Re: [PATCH] mtd: davinci_nand: Use managed resources

2013-02-13 Thread Artem Bityutskiy
On Thu, 2013-02-07 at 16:03 +0530, Mrugesh Katepallewar wrote: > davinci_nand driver currently uses normal kzalloc, ioremap and get_clk > routines. This patch replaces these routines with devm_kzalloc, > devm_request_and_ioremap and devm_clk_get resp. > > Signed-off-by: Mrugesh Katepallewar

Re: [PATCH v2 linux-next 2/2] cpufreq: Convert the cpufreq_driver_lock to use the rcu

2013-02-13 Thread Rafael J. Wysocki
On Tuesday, February 12, 2013 07:59:54 AM Paul E. McKenney wrote: > On Mon, Feb 11, 2013 at 08:36:17PM +0100, Rafael J. Wysocki wrote: > > On Monday, February 11, 2013 05:13:30 PM Nathan Zimmer wrote: > > > There are some spots that I need to give a much deeper review, > > >

Re: [PATCH 2/2] ima: Support appraise_type=imasig_optional

2013-02-13 Thread Kasatkin, Dmitry
On Wed, Feb 13, 2013 at 2:56 PM, Mimi Zohar wrote: > On Wed, 2013-02-13 at 14:31 +0200, Kasatkin, Dmitry wrote: >> On Mon, Feb 11, 2013 at 10:11 PM, Vivek Goyal wrote: > >> > @@ -158,7 +165,8 @@ int ima_appraise_measurement(int func, struct >> > integrity_iint_cache *iint, >> > } >> >

[Update][PATCH] ACPI / hotplug: Fix concurrency issues and memory leaks

2013-02-13 Thread Rafael J. Wysocki
From: Rafael J. Wysocki This changeset is aimed at fixing a few different but related problems in the ACPI hotplug infrastructure. First of all, since notify handlers may be run in parallel with acpi_bus_scan(), acpi_bus_trim() and acpi_bus_hot_remove_device() and some of them are installed for

Re: [PATCH 2/3] nbd: fsync and kill block device on shutdown

2013-02-13 Thread Paolo Bonzini
Il 12/02/2013 22:41, Andrew Morton ha scritto: >> > There are two problems with shutdown in the NBD driver. The first is >> > that receiving the NBD_DISCONNECT ioctl does not sync the filesystem; >> > this is useful because BLKFLSBUF is restricted to processes that have >> > CAP_SYS_ADMIN, and

Re: [PATCH] ACPI / hotplug: Fix concurrency issues and memory leaks

2013-02-13 Thread Rafael J. Wysocki
On Wednesday, February 13, 2013 12:31:05 PM Yasuaki Ishimatsu wrote: > Hi Rafael, > > I have another comment at container.c. > > 2013/02/13 12:08, Yasuaki Ishimatsu wrote: > > Hi Rafael, > > > > The patch seems good. > > There is a comment below. > > > > 2013/02/13 9:19, Rafael J. Wysocki wrote:

Re: [PATCH] ACPI / hotplug: Fix concurrency issues and memory leaks

2013-02-13 Thread Rafael J. Wysocki
On Tuesday, February 12, 2013 05:55:26 PM Yinghai Lu wrote: > On Tue, Feb 12, 2013 at 4:19 PM, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > This changeset is aimed at fixing a few different but related > > problems in the ACPI hotplug infrastructure. > > > > First of all, since

Re: [PATCH 1/3] nbd: support FLUSH requests

2013-02-13 Thread Paolo Bonzini
Il 13/02/2013 01:03, Alex Bligh ha scritto: >> > Obviously the changelog was inadequate. Please send along a new one >> > which fully describes the reasons for this change. > To be clear I have no complaints about the rest of the patch being > merged. Supporting FLUSH but not FUA is far better

Re: [PATCH] regulator: tps51632: Use regulator_[get|set]_voltage_sel_regmap

2013-02-13 Thread Mark Brown
On Wed, Feb 13, 2013 at 05:01:09PM +0800, Axel Lin wrote: > Signed-off-by: Axel Lin Applied, thanks. signature.asc Description: Digital signature

Re: [PATCH] regulator: as3711: Fix checking if no platform initialization data

2013-02-13 Thread Mark Brown
On Wed, Feb 13, 2013 at 09:34:48AM +0800, Axel Lin wrote: > To skip registering regulator if no platform initialization data, > we should check reg_data rather than ri->desc.name. Applied, thanks. signature.asc Description: Digital signature

Re: [PATCH v3 4/7] memcg: remove memcg from the reclaim iterators

2013-02-13 Thread Michal Hocko
On Wed 13-02-13 11:34:59, Michal Hocko wrote: > On Tue 12-02-13 12:37:41, Johannes Weiner wrote: > > On Tue, Feb 12, 2013 at 06:12:16PM +0100, Michal Hocko wrote: > [...] > > > diff --git a/mm/memcontrol.c b/mm/memcontrol.c > > > index 727ec39..31bb9b0 100644 > > > --- a/mm/memcontrol.c > > > +++

Re: [PATCH 2/2] ima: Support appraise_type=imasig_optional

2013-02-13 Thread Mimi Zohar
On Wed, 2013-02-13 at 14:31 +0200, Kasatkin, Dmitry wrote: > On Mon, Feb 11, 2013 at 10:11 PM, Vivek Goyal wrote: > > @@ -158,7 +165,8 @@ int ima_appraise_measurement(int func, struct > > integrity_iint_cache *iint, > > } > > switch (xattr_value->type) { > > case

Re: linux-next: manual merge of the ia64 tree with Linus' tree

2013-02-13 Thread Matt Fleming
On Wed, 2013-02-13 at 13:05 +1100, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the ia64 tree got a conflict in > drivers/firmware/efivars.c between commit 83e68189745a ("efi: Make > 'efi_enabled' a function to query EFI facilities") from the tree and > commit a93bc0c6e07e

Re: [PATCH] ACPI / PCI: Initialize PCI root drivers after PCI bus enumeration

2013-02-13 Thread Rafael J. Wysocki
On Tuesday, February 12, 2013 05:54:08 PM Yinghai Lu wrote: > On Tue, Feb 12, 2013 at 4:16 PM, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > After commit 1aeae82 (ACPI / PCI: avoid building pci_slot as module) > > the pci_slot driver's .add() callback routine, acpi_pci_slot_add(),

Re: [PATCH 1/2] regulator: s5m8767: Fix dev argument for devm_kzalloc and of_get_regulator_init_data

2013-02-13 Thread Mark Brown
On Wed, Feb 13, 2013 at 09:29:45AM +0800, Axel Lin wrote: > Use >dev rather than iodev->dev for devm_kzalloc() and > of_get_regulator_init_data(), this fixes memory leak. Applied both, thanks. signature.asc Description: Digital signature

Re: [PATCH v2] gpio: mcp23s08: convert driver to DT

2013-02-13 Thread Linus Walleij
On Wed, Feb 13, 2013 at 12:13 PM, Lars Poeschel wrote: > On Monday 11 February 2013 at 22:25:51, Grant Likely wrote: >> >> However, is the pullup selection per-gpio line? If so, then why not >> encode it into the flags field of the gpio specifier? > > Yes, the pullup is per-gpio line. I am

Re: [PATCH] regulator: tps51632: Use regulator_[get|set]_voltage_sel_regmap

2013-02-13 Thread Laxman Dewangan
On Wednesday 13 February 2013 02:31 PM, Axel Lin wrote: Signed-off-by: Axel Lin --- LGTM, Acked-by: Laxman Dewangan -- 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

Re: [PATCH vringh 2/2] caif_virtio: Introduce caif over virtio

2013-02-13 Thread Sjur Brændeland
Hi Rusty, On Wed, Feb 13, 2013 at 11:16 AM, Rusty Russell wrote: > Sjur BRENDELAND writes: >>> > +static inline void ctx_prep_iov(struct cfv_napi_context *ctx) >>> > +{ >>> > + if (ctx->riov.allocated) { >>> > + kfree(ctx->riov.iov); >>> > + ctx->riov.iov = NULL; >>> > +

RE: [tip:x86/hyperv] X86: Handle Hyper-V vmbus interrupts as special hypervisor interrupts

2013-02-13 Thread KY Srinivasan
> -Original Message- > From: yhlu.ker...@gmail.com [mailto:yhlu.ker...@gmail.com] On Behalf Of > Yinghai Lu > Sent: Tuesday, February 12, 2013 11:43 PM > To: KY Srinivasan > Cc: H. Peter Anvin; mi...@kernel.org; linux-kernel@vger.kernel.org; > t...@linutronix.de; h...@linux.intel.com;

Re: [PATCH v2 3/4] mtd: devices: elm: Low power transition support

2013-02-13 Thread Russell King - ARM Linux
On Wed, Feb 13, 2013 at 11:42:01AM +, Philip, Avinash wrote: > On Sat, Feb 09, 2013 at 15:52:44, Russell King - ARM Linux wrote: > > On Thu, Feb 07, 2013 at 06:06:57PM +0530, Philip Avinash wrote: > > > +static int elm_suspend(struct device *dev) > > > +{ > > > + struct elm_info *info =

Re: SELinux + ubifs: possible circular locking dependency

2013-02-13 Thread Artem Bityutskiy
On Fri, 2013-02-08 at 15:10 +0100, Marc Kleine-Budde wrote: > Hello, > > I'm on a arm imx28 v3.8-rc6 (+ a handfull of patches to support the > custom board) but no modifications on ubifs, selinux or the vfs layer. > And not including the xattr patches by Subodh Nijsure. > > When booting with

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