[PATCH] perf: Update event buffer tail when overwriting old events

2013-06-05 Thread Yan, Zheng
From: "Yan, Zheng" If perf event buffer is in overwrite mode, the kernel only updates the data head when it overwrites old samples. The program that owns the buffer need periodically check the buffer and update a variable that tracks the date tail. If the program fails to do this in time, the

Re: [PATCH] net: Unbreak compat_sys_{send,recv}msg

2013-06-05 Thread Michael Neuling
Andy Lutomirski wrote: > I broke them in this commit: > > commit 1be374a0518a288147c6a7398792583200a67261 > Author: Andy Lutomirski > Date: Wed May 22 14:07:44 2013 -0700 > > net: Block MSG_CMSG_COMPAT in send(m)msg and recv(m)msg > > This patch adds __sys_sendmsg and

Re: [PATCH] powerpc/pci: Improve device hotplug initialization

2013-06-05 Thread Benjamin Herrenschmidt
On Wed, 2013-06-05 at 22:25 -0700, Guenter Roeck wrote: > > > Can you point me to some of the breaking code ? I guess it must be in some of > the pci_dma_dev_setup callbacks, but those I looked at only check devicetree > data or simply set function pointers, both of which should not be affected

[PATCH 1/2] ARM: dts: bcm281xx: use #include for device tree files

2013-06-05 Thread Matt Porter
Replace /include/ by #include for bcm281xx device tree files, enabling use of the C preprocessor. Signed-off-by: Matt Porter --- arch/arm/boot/dts/bcm11351-brt.dts |2 +- arch/arm/boot/dts/bcm11351.dtsi|2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCH] Modify UEFI anti-bricking code

2013-06-05 Thread joeyli
於 四,2013-06-06 於 13:05 +0800,joeyli 提到: > 於 三,2013-06-05 於 16:59 +0100,Matt Fleming 提到: > > On Wed, 05 Jun, at 02:53:27PM, Matthew Garrett wrote: > > > On Wed, 2013-06-05 at 15:49 +0100, Fleming, Matt wrote: > > > > > > > Folks, what do you want me to do with this? Merge it with Matthew's > > >

Re: [PATCH] Modify UEFI anti-bricking code

2013-06-05 Thread Matthew Garrett
On Thu, 2013-06-06 at 13:05 +0800, joeyli wrote: > + if (!(attributes & EFI_VARIABLE_NON_VOLATILE)) > + return EFI_OUT_OF_RESOURCES; I'd move this up to the top of the function, and just return 0 - there's no risk of the firmware causing problems if it's a

[PATCH 0/2] ARM dts: bcm281xx: use preprocessor for device trees

2013-06-05 Thread Matt Porter
This series follows the same approach as taken on Tegra and OMAP DT files to use the C preprocessor in order to improve readability. Since bcm281xx does not yet have gpio and pinctrl support, this series just enables the C preprocessor and removes the magic constants from existing irq properties.

[PATCH 2/2] ARM: dts: bcm281xx: use existing defines for irqs

2013-06-05 Thread Matt Porter
Use the standard interrupt-controller and ARM GIC constants to improve the readability of bcm281xx DT irq properties. Signed-off-by: Matt Porter --- arch/arm/boot/dts/bcm11351.dtsi |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/bcm11351.dtsi

[PATCH] net: Unbreak compat_sys_{send,recv}msg

2013-06-05 Thread Andy Lutomirski
I broke them in this commit: commit 1be374a0518a288147c6a7398792583200a67261 Author: Andy Lutomirski Date: Wed May 22 14:07:44 2013 -0700 net: Block MSG_CMSG_COMPAT in send(m)msg and recv(m)msg This patch adds __sys_sendmsg and __sys_sendmsg as common helpers that accept

linux-next: manual merge of the mvebu tree with the imx-mxs tree

2013-06-05 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the mvebu tree got a conflict in arch/arm/Kconfig.debug between commit 284166ffebc3 ("ARM: imx: enable low-level debug support for imx6sl") from the imx-mxs tree and commit 5be22d8c29fd ("arm: mvebu: add another earlyprintk Kconfig option") from the mvebu tree.

Re: [patch 2/2] memcg: do not sleep on OOM waitqueue with full charge context

2013-06-05 Thread Johannes Weiner
On Wed, Jun 05, 2013 at 09:10:51PM -0700, David Rientjes wrote: > On Wed, 5 Jun 2013, Johannes Weiner wrote: > > > The memcg OOM handling is incredibly fragile because once a memcg goes > > OOM, one task (kernel or userspace) is responsible for resolving the > > situation. > > Not sure what this

[PATCH v3] mfd: DT bindings for the palmas family MFD

2013-06-05 Thread J Keerthy
Add the various binding files for the palmas family of chips. There is a top level MFD binding then a seperate binding for regulators IP blocks on chips. Signed-off-by: Graeme Gregory Signed-off-by: J Keerthy Signed-off-by: Ian Lartey Reviewed-by: Stephen Warren ---

[git pull] m68knommu follow up fixes for 3.10

2013-06-05 Thread Greg Ungerer
Hi Linus, Can you please pull the m68knommu git tree, for-linus branch. It contains only a single fix for compilation breakage to many of the ColdFire CPU targets. Regards Greg The following changes since commit e4aa937ec75df0eea0bee03bffa3303ad36c986b: Linux 3.10-rc3 (2013-05-26 16:00:47

[git pull] drm fixes (try again)

2013-06-05 Thread Dave Airlie
Hi, this time after I appended the right file. regression fixers for the big 3: nouveau: hdmi audio, dac load detect, s/r regressions fixed radeon: long standing system hang fixed, hdmi audio and rs780 fast fb fixes intel: one old regression, a WARN removal, and a stop X dying fix otherwise

Re: [git pull] drm fixes

2013-06-05 Thread Dave Airlie
On Thu, Jun 6, 2013 at 3:22 PM, Linus Torvalds wrote: > On Thu, Jun 6, 2013 at 2:14 PM, Dave Airlie wrote: >> >> 7 files changed, 32 insertions(+), 42 deletions(-) > > That's not at all what I get (including shortlog). I got > > 29 files changed, 188 insertions(+), 68 deletions(-) > > from a

Re: [PATCH] powerpc/pci: Improve device hotplug initialization

2013-06-05 Thread Guenter Roeck
On Thu, Jun 06, 2013 at 11:00:04AM +1000, Benjamin Herrenschmidt wrote: > On Sat, 2013-06-01 at 06:58 -0700, Guenter Roeck wrote: > > the comment was actuially directed towards Yuanquan. > > > > No problem, take your time. I did my best to test it, but I agree that this > > is a > > critical

Re: [PATCH v2 1/2] acpi: video: add function to support unregister backlight interface

2013-06-05 Thread Aaron Lu
On 05/31/2013 12:10 PM, Lee, Chun-Yi wrote: > There have some situation we unregister whole acpi/video driver by downstream > driver just want to remove backlight control interface of acpi/video. It caues > we lost other functions of acpi/video, e.g. transfer acpi event to input > event. > > So,

Re: [git pull] drm fixes

2013-06-05 Thread Linus Torvalds
On Thu, Jun 6, 2013 at 2:14 PM, Dave Airlie wrote: > > 7 files changed, 32 insertions(+), 42 deletions(-) That's not at all what I get (including shortlog). I got 29 files changed, 188 insertions(+), 68 deletions(-) from a lot of commits you don't list. Linus -- To unsubscribe

[git pull] drm fixes

2013-06-05 Thread Dave Airlie
Hi Linus, regression fixers for the big 3: nouveau: hdmi audio, dac load detect, s/r regressions fixed radeon: long standing system hang fixed, hdmi audio and rs780 fast fb fixes intel: one old regression, a WARN removal, and a stop X dying fix otherwise one mgag200 fix, a couple of arm build

Re: [PATCH] Modify UEFI anti-bricking code

2013-06-05 Thread joeyli
於 三,2013-06-05 於 16:59 +0100,Matt Fleming 提到: > On Wed, 05 Jun, at 02:53:27PM, Matthew Garrett wrote: > > On Wed, 2013-06-05 at 15:49 +0100, Fleming, Matt wrote: > > > > > Folks, what do you want me to do with this? Merge it with Matthew's patch? > > > > Do that and add Joey's signed-off-by? >

Re: [PATCH 5/5] net: Block MSG_CMSG_COMPAT in send(m)msg and recv(m)msg

2013-06-05 Thread David Miller
From: Eric Dumazet Date: Wed, 05 Jun 2013 21:35:25 -0700 > On Thu, 2013-06-06 at 12:56 +1000, Michael Neuling wrote: >> On Thu, May 23, 2013 at 7:07 AM, Andy Lutomirski wrote: >> > MSG_CMSG_COMPAT is (AFAIK) not intended to be part of the API -- >> > it's a hack that steals a bit to indicate to

Re: [patch 1/2] arch: invoke oom-killer from page fault

2013-06-05 Thread David Rientjes
On Thu, 6 Jun 2013, Johannes Weiner wrote: > From: Johannes Weiner > Subject: [patch] mm: invoke oom-killer from remaining unconverted page fault > handlers > > A few remaining architectures directly kill the page faulting task in > an out of memory situation. This is usually not a good idea

Re: [PATCH] [RFC]Watchdog:core: constant pinging until userspace timesout when delay very less

2013-06-05 Thread Guenter Roeck
On Thu, Jun 06, 2013 at 08:30:01AM +0530, anish singh wrote: > Hello Wim Van, > Can you look into below? > Please be patient. Wim tends to be busy. Guenter > On Wed, Jun 5, 2013 at 8:39 AM, anish singh > wrote: > > Hello Wim Van Sabroeck, > > Can I get your inputs on this? > > > > On Tue, Jun

Re: [patch] memcg: clean up memcg->nodeinfo

2013-06-05 Thread David Rientjes
On Wed, 5 Jun 2013, Johannes Weiner wrote: > diff --git a/mm/memcontrol.c b/mm/memcontrol.c > index ff7b40d..d169a8d 100644 > --- a/mm/memcontrol.c > +++ b/mm/memcontrol.c > @@ -187,10 +187,6 @@ struct mem_cgroup_per_node { > struct mem_cgroup_per_zone zoneinfo[MAX_NR_ZONES]; > }; > >

Re: mmotm 2013-06-05-17-24 uploaded (ptp_pch)

2013-06-05 Thread Randy Dunlap
On 06/05/13 17:26, a...@linux-foundation.org wrote: > The mm-of-the-moment snapshot 2013-06-05-17-24 has been uploaded to > >http://www.ozlabs.org/~akpm/mmotm/ > > mmotm-readme.txt says > > README for mm-of-the-moment: > > http://www.ozlabs.org/~akpm/mmotm/ > on i386: when CONFIG_PCI is

Re: [PATCH v2 1/4] ARM: davinci: dm365 evm: remove init_enable from ths7303 pdata

2013-06-05 Thread Sekhar Nori
On 5/25/2013 11:09 PM, Prabhakar Lad wrote: > From: Lad, Prabhakar > > remove init_enable from ths7303 pdata as it is being dropped > from ths7303_platform_data. > > Signed-off-by: Lad, Prabhakar > Cc: Sekhar Nori > Cc: Hans Verkuil > Cc: Laurent Pinchart > Cc: Mauro Carvalho Chehab > Cc:

Re: [patch 1/2] arch: invoke oom-killer from page fault

2013-06-05 Thread Johannes Weiner
On Wed, Jun 05, 2013 at 08:57:44PM -0700, David Rientjes wrote: > On Wed, 5 Jun 2013, Johannes Weiner wrote: > > > Since '1c0fe6e mm: invoke oom-killer from page fault', page fault > > handlers should not directly kill faulting tasks in an out of memory > > condition. > > I have no objection to

Re: [PATCH 5/5] net: Block MSG_CMSG_COMPAT in send(m)msg and recv(m)msg

2013-06-05 Thread Eric Dumazet
On Thu, 2013-06-06 at 12:56 +1000, Michael Neuling wrote: > On Thu, May 23, 2013 at 7:07 AM, Andy Lutomirski wrote: > > MSG_CMSG_COMPAT is (AFAIK) not intended to be part of the API -- > > it's a hack that steals a bit to indicate to other networking code > > that a compat entry was used. So

Re: mmotm 2013-06-05-17-24 uploaded (rtc)

2013-06-05 Thread Randy Dunlap
On 06/05/13 17:26, a...@linux-foundation.org wrote: > The mm-of-the-moment snapshot 2013-06-05-17-24 has been uploaded to > >http://www.ozlabs.org/~akpm/mmotm/ > > mmotm-readme.txt says > > README for mm-of-the-moment: > > http://www.ozlabs.org/~akpm/mmotm/ > on i386 when CONFIG_PM is

Re: [PATCH] Fix lockup related to stop_machine being stuck in __do_softirq.

2013-06-05 Thread Eric Dumazet
On Wed, 2013-06-05 at 21:25 -0700, gree...@candelatech.com wrote: > From: Ben Greear > diff --git a/kernel/softirq.c b/kernel/softirq.c > index 14d7758..f150ad6 100644 > --- a/kernel/softirq.c > +++ b/kernel/softirq.c > @@ -204,6 +204,7 @@ EXPORT_SYMBOL(local_bh_enable_ip); > * should not be

[PATCH] Fix lockup related to stop_machine being stuck in __do_softirq.

2013-06-05 Thread greearb
From: Ben Greear The stop machine logic can lock up if all but one of the migration threads make it through the disable-irq step and the one remaining thread gets stuck in __do_softirq. The reason __do_softirq can hang is that it has a bail-out based on jiffies timeout, but in the lockup case,

Re: [PATCH] ARM: avoid mis-detecting some V7 cores in the decompressor

2013-06-05 Thread Nicolas Pitre
On Wed, 5 Jun 2013, Stephen Boyd wrote: > On 06/04, Nicolas Pitre wrote: > > > > The LC0 area should be considered read-only as it may be located in > > flash. > > > > Here's what I came with instead: > > > > From: Nicolas Pitre > > Date: Tue, 4 Jun 2013 17:01:30 -0400 > > Subject: [PATCH]

Re: [PATCH 0/5] Broken DM816x support in Linux 3.10-rc4

2013-06-05 Thread Paul Walmsley
Hi, also, On Wed, 5 Jun 2013, Aida Mynzhasova wrote: > Aida Mynzhasova (5): > ARM: OMAP: AM33xx: multiple renames for early initialization If this patch is what's responsible for all the file renaming, please drop it. Looks from the change summary that it's just useless churn (although I

Fwd: [PATCH] usb: phy: samsung: Add support for EXYNOS4210

2013-06-05 Thread Praveen Paneri
Hi, On Tue, May 28, 2013 at 2:34 PM, Jingoo Han wrote: > Add support for EXYNOS4210 that includes USB EHCI/OHCI. > Previous PHY initialization code is not correct; thus, it is modifed ^ You might want to say "previous PHY init code does

Re: [patch 2/2] memcg: do not sleep on OOM waitqueue with full charge context

2013-06-05 Thread David Rientjes
On Wed, 5 Jun 2013, Johannes Weiner wrote: > The memcg OOM handling is incredibly fragile because once a memcg goes > OOM, one task (kernel or userspace) is responsible for resolving the > situation. Not sure what this means. Are you referring to the case where the memcg is disabled from oom

Re: stop_machine lockup issue in 3.9.y.

2013-06-05 Thread Eric Dumazet
On Wed, 2013-06-05 at 20:50 -0700, Ben Greear wrote: > On 06/05/2013 08:46 PM, Eric Dumazet wrote: > > > > We use in Google a patch triggering warning is a thread holds the cpu > > without taking care to need_resched() for more than xx ms > > Well, I'm sure that patch works nicely until the clock

Re: [patch 1/2] arch: invoke oom-killer from page fault

2013-06-05 Thread David Rientjes
On Wed, 5 Jun 2013, Johannes Weiner wrote: > Since '1c0fe6e mm: invoke oom-killer from page fault', page fault > handlers should not directly kill faulting tasks in an out of memory > condition. I have no objection to the patch, but there's no explanation given here why exiting with a kill

linux-next: manual merge of the kvm tree with the s390 tree

2013-06-05 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm tree got a conflict in arch/s390/include/asm/pgtable.h between commit 338679f7ba4a ("s390/pgtable: Fix guest overindication for change bit") from the s390 tree and commit 0d0dafc1e48f ("s390/kvm: rename RCP_xxx defines to PGSTE_xxx") from the kvm tree.

Re: [PATCH 0/5] Broken DM816x support in Linux 3.10-rc4

2013-06-05 Thread Paul Walmsley
здравствуйте, On Wed, 5 Jun 2013, Aida Mynzhasova wrote: > Not so long ago I tried to boot Linux 3.10-rc4 kernel on DM816x EVM > board. Unfortunately, my attempts were failed by reason of poor > support of DM81xx-based devices in new kernels. Yeah, TI pretty much gave up on trying to get

Re: stop_machine lockup issue in 3.9.y.

2013-06-05 Thread Ben Greear
On 06/05/2013 08:46 PM, Eric Dumazet wrote: On Wed, 2013-06-05 at 20:41 -0700, Ben Greear wrote: On 06/05/2013 08:26 PM, Eric Dumazet wrote: On Wed, 2013-06-05 at 20:14 -0700, Tejun Heo wrote: Ah, so, that's why it's showing up now. We probably have had the same issue all along but it used

Re: [PATCH 0/3 v3] dcache: make it more scalable on large system

2013-06-05 Thread Dave Chinner
On Wed, May 29, 2013 at 10:37:00PM +0200, Andi Kleen wrote: > > As Dave said before, is the last path component sufficient? Or how > > about an inode number? > > Neither works, the profiler needs to find the file and read it. > > inode searching would be incredible expensive, unless the file

Re: stop_machine lockup issue in 3.9.y.

2013-06-05 Thread Eric Dumazet
On Wed, 2013-06-05 at 20:41 -0700, Ben Greear wrote: > On 06/05/2013 08:26 PM, Eric Dumazet wrote: > > On Wed, 2013-06-05 at 20:14 -0700, Tejun Heo wrote: > > > >> > >> Ah, so, that's why it's showing up now. We probably have had the same > >> issue all along but it used to be masked by the

Re: stop_machine lockup issue in 3.9.y.

2013-06-05 Thread Ben Greear
On 06/05/2013 08:26 PM, Eric Dumazet wrote: On Wed, 2013-06-05 at 20:14 -0700, Tejun Heo wrote: Ah, so, that's why it's showing up now. We probably have had the same issue all along but it used to be masked by the softirq limiting. Do you care to revive the 10 iterations limit so that it's

RE: [PATCH v2] mfd: DT bindings for the palmas family MFD

2013-06-05 Thread J, KEERTHY
Hi Grant, > -Original Message- > From: Grant Likely [mailto:glik...@secretlab.ca] On Behalf Of Grant > Likely > Sent: Thursday, June 06, 2013 5:32 AM > To: J, KEERTHY; linux-kernel@vger.kernel.org > Cc: linux-...@vger.kernel.org; devicetree-disc...@lists.ozlabs.org; >

RE: [PATCH v2] mfd: DT bindings for the palmas family MFD

2013-06-05 Thread J, KEERTHY
Hi Stephen, Thanks for the quick review. > -Original Message- > From: Stephen Warren [mailto:swar...@wwwdotorg.org] > Sent: Wednesday, June 05, 2013 10:44 PM > To: J, KEERTHY > Cc: linux-kernel@vger.kernel.org; linux-...@vger.kernel.org; > devicetree-disc...@lists.ozlabs.org; >

[PATCH V2] vhost_net: clear msg.control for non-zerocopy case during tx

2013-06-05 Thread Jason Wang
When we decide not use zero-copy, msg.control should be set to NULL otherwise macvtap/tap may set zerocopy callbacks which may decrease the kref of ubufs wrongly. Bug were introduced by commit cedb9bdce099206290a2bdd02ce47a7b253b6a84 (vhost-net: skip head management if no outstanding). This

Re: [PATCH 5/5] net: Block MSG_CMSG_COMPAT in send(m)msg and recv(m)msg

2013-06-05 Thread Stephen Rothwell
Hi Anton, On Thu, 6 Jun 2013 13:01:05 +1000 Anton Blanchard wrote: > > > This is causing a regression on 64bit powerpc with 32bit usermode. > > When I hit userspace, udev is broken and I suspect all networking is > > broken as well. > > > > Can we please revert

Re: [PATCH] vhost_net: clear msg.control for non-zerocopy case during tx

2013-06-05 Thread Jason Wang
On 06/05/2013 09:44 PM, Sergei Shtylyov wrote: > Hello. > > On 05-06-2013 11:40, Jason Wang wrote: > >> When we decide not use zero-copy, msg.control should be set to NULL >> otherwise >> macvtap/tap may set zerocopy callbacks which may decrease the kref of >> ubufs >> wrongly. > >> Bug were

Re: stop_machine lockup issue in 3.9.y.

2013-06-05 Thread Eric Dumazet
On Wed, 2013-06-05 at 20:14 -0700, Tejun Heo wrote: > > Ah, so, that's why it's showing up now. We probably have had the same > issue all along but it used to be masked by the softirq limiting. Do > you care to revive the 10 iterations limit so that it's limited by > both the count and timing?

Re: [net-next rfc V3 8/9] macvtap: add TUNSETQUEUE ioctl

2013-06-05 Thread Jason Wang
On 06/05/2013 06:59 PM, Michael S. Tsirkin wrote: > On Wed, Jun 05, 2013 at 02:36:31PM +0800, Jason Wang wrote: >> This patch adds TUNSETQUEUE ioctl to let userspace can temporarily disable or >> enable a queue of macvtap. This is used to be compatible at API layer of >> tuntap >> to simplify the

Re: stop_machine lockup issue in 3.9.y.

2013-06-05 Thread Tejun Heo
Hello, Eric. On Wed, Jun 05, 2013 at 06:34:52PM -0700, Eric Dumazet wrote: > > Ingo, Thomas, we're seeing a stop_machine hanging because > > > > * All other CPUs entered IRQ disabled stage. Jiffies is not being > > updated. > > > > * The last CPU get caught up executing softirq indefinitely.

Re: [net-next rfc V3 7/9] macvtap: allow TUNSETIFF to create multiqueue device

2013-06-05 Thread Jason Wang
On 06/05/2013 06:43 PM, Michael S. Tsirkin wrote: > On Wed, Jun 05, 2013 at 02:36:30PM +0800, Jason Wang wrote: >> Though the queue were in fact created by open(), we still need to add this >> check >> to be compatible with tuntap which can let mgmt software use a single API to >> manage queues.

[patch 1/2] arch: invoke oom-killer from page fault

2013-06-05 Thread Johannes Weiner
Since '1c0fe6e mm: invoke oom-killer from page fault', page fault handlers should not directly kill faulting tasks in an out of memory condition. Instead, they should be invoking the OOM killer to pick the right task. Convert the remaining architectures. Signed-off-by: Johannes Weiner ---

[patch 2/2] memcg: do not sleep on OOM waitqueue with full charge context

2013-06-05 Thread Johannes Weiner
The memcg OOM handling is incredibly fragile because once a memcg goes OOM, one task (kernel or userspace) is responsible for resolving the situation. Every other task that gets caught trying to charge memory gets stuck in a waitqueue while potentially holding various filesystem and mm locks on

Re: [PATCH] dma: mmp_pdma: support for getting residual bytes

2013-06-05 Thread Xiang Wang
2013/6/3 Andy Shevchenko : > On Mon, Jun 3, 2013 at 6:22 AM, Xiang Wang wrote: >> 2013/5/31 Andy Shevchenko : >>> On Fri, May 31, 2013 at 11:21 AM, Xiang Wang wrote: In some of our drivers (e.g. UART) we may stop a running DMA before it finishes. So we need to know how many bytes have

Re: [net-next rfc V3 0/9] Multiqueue API for macvtap

2013-06-05 Thread Jason Wang
On 06/05/2013 06:36 PM, Michael S. Tsirkin wrote: > On Wed, Jun 05, 2013 at 02:36:23PM +0800, Jason Wang wrote: >> > Hi all: >> > >> > This series implements a v3 of fully tuntap compatiable API which could be >> > used >> > by userspace to manage multiple macvtap queues. The main parts is to

[patch] memcg: clean up memcg->nodeinfo

2013-06-05 Thread Johannes Weiner
Remove struct mem_cgroup_lru_info and fold its single member, the variably sized nodeinfo[0], directly into struct mem_cgroup. This should make it more obvious why it has to be the last member there. Also move the comment that's above that special last member below it, so it is more visible to

Re: [PATCH RFC v2 1/3] drivers/platform/x86: add cpu physically hotplug driver

2013-06-05 Thread li guang
在 2013-06-06四的 10:24 +0800,Gu Zheng写道: > On 06/06/2013 09:40 AM, liguang wrote: > > > this driver will support cpu phyical add/removal automatically > > after online/offline. if cpu hotpluged, cpu will not > > online automatically, and for cpu offline, we try to > > do actually eject if allowed

Re: [PATCH 5/5] net: Block MSG_CMSG_COMPAT in send(m)msg and recv(m)msg

2013-06-05 Thread Anton Blanchard
Hi, > This is causing a regression on 64bit powerpc with 32bit usermode. > When I hit userspace, udev is broken and I suspect all networking is > broken as well. > > Can we please revert 1be374a0518a288147c6a7398792583200a67261 > upstream? > > Found via bisect. Doesn't this patch break

Re: [PATCH] [RFC]Watchdog:core: constant pinging until userspace timesout when delay very less

2013-06-05 Thread anish singh
Hello Wim Van, Can you look into below? On Wed, Jun 5, 2013 at 8:39 AM, anish singh wrote: > Hello Wim Van Sabroeck, > Can I get your inputs on this? > > On Tue, Jun 4, 2013 at 8:39 AM, anish singh > wrote: >> On Tue, Jun 4, 2013 at 3:55 AM, Guenter Roeck wrote: >>> On Mon, Jun 03, 2013 at

Re: [PATCH 5/5] net: Block MSG_CMSG_COMPAT in send(m)msg and recv(m)msg

2013-06-05 Thread Michael Neuling
On Thu, May 23, 2013 at 7:07 AM, Andy Lutomirski wrote: > MSG_CMSG_COMPAT is (AFAIK) not intended to be part of the API -- > it's a hack that steals a bit to indicate to other networking code > that a compat entry was used. So don't allow it from a non-compat > syscall. Dave & Linus This is

RE: [PATCH v2] ARM: mmp: bring up pxa988 with device tree support

2013-06-05 Thread Neil Zhang
Hi Arnd, > -Original Message- > From: Arnd Bergmann [mailto:a...@arndb.de] > Sent: 2013年5月31日 19:25 > To: linux-arm-ker...@lists.infradead.org > Cc: Neil Zhang; haojian.zhu...@gmail.com; linux-kernel@vger.kernel.org > Subject: Re: [PATCH v2] ARM: mmp: bring up pxa988 with device tree

[PATCH 1/2 v3] SELinux: Reduce overhead of mls_level_isvalid() function call

2013-06-05 Thread Waiman Long
v2->v3: - Remove unused local variables i, node from mls_level_isvalid(). v1->v2: - Move the new ebitmap comparison logic from mls_level_isvalid() into the ebitmap_contains() helper function. - Rerun perf and performance tests on the latest v3.10-rc4 kernel. While running the high_systime

Re: [PATCH v2][RFC] tracing/context-tracking: Add preempt_schedule_context() for tracing

2013-06-05 Thread Steven Rostedt
On Wed, 2013-06-05 at 09:41 -0400, Steven Rostedt wrote: > > > > If preempt_enable_notrace() is the only user, why does this live in > > kernel/context_tracking.c and not in kernel/sched/core.c? > > Then we would need to add #ifdef CONFIG_CONTEXT_TRACKING around it too. > As we have in

[PATCH] doc: avoid strncpy in accounting tool

2013-06-05 Thread Kees Cook
Avoid strncpy anti-pattern. Use strdup() instead, as already done for the logfile optarg. Signed-off-by: Kees Cook --- Fix for -mm clean-up-scary-strncpydst-src-strlensrc-uses-fix.patch --- Documentation/accounting/getdelays.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH cgroup/for-3.11] cgroup: disallow cpuacct if sane_behavior

2013-06-05 Thread Tejun Heo
cpuacct causes duplicate accountings on the scheduler and cpu will provide equivalent stats. Optimizations for cases where cpu and cpuacct are co-mounted are being worked on but we want to deprecate it eventually. Let's disallow cpuacct if __DEVEL__sane_behavior. Signed-off-by: Tejun Heo Cc:

[PATCH v2 3/3] sched: remove the useless declaration in kernel/sched/fair.c

2013-06-05 Thread Michael Wang
v2: re-based on latest tip/master default_cfs_period(), do_sched_cfs_period_timer(), do_sched_cfs_slack_timer() already defined previously, no need to declare again. CC: Ingo Molnar CC: Peter Zijlstra Signed-off-by: Michael Wang --- kernel/sched/fair.c |4 1 files changed, 0

Re: [RFC] corner cases of open() on procfs symlinks

2013-06-05 Thread Linus Torvalds
On Thu, Jun 6, 2013 at 11:29 AM, Al Viro wrote: > > Probably... procfs symlinks neutering O_DIRECTORY might, in theory, be usable > to cook something nasty, but I don't see any obvious ways to exploit that. > FWIW, resulting kernel seems to survive the minimal beating, but obviously > more is

[PATCH v2 2/3] sched: code refine in unthrottle_cfs_rq()

2013-06-05 Thread Michael Wang
v2: re-based on latest tip/master Directly use rq to save some code. CC: Ingo Molnar CC: Peter Zijlstra Signed-off-by: Michael Wang --- kernel/sched/fair.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index

[PATCH v2 1/2] dma: mmp_pdma: add protect when alloc/free phy channels

2013-06-05 Thread Xiang Wang
From: Xiang Wang In mmp pdma, phy channels are allocated/freed dynamically and frequently. But no proper protection is added. Conflict will happen when multi-users are requesting phy channels at the same time. Use spinlock to protect. Signed-off-by: Xiang Wang --- drivers/dma/mmp_pdma.c |

Re: [RFC] corner cases of open() on procfs symlinks

2013-06-05 Thread Al Viro
On Thu, Jun 06, 2013 at 10:38:31AM +0900, Linus Torvalds wrote: > On Thu, Jun 6, 2013 at 10:20 AM, Al Viro wrote: > > I'm not sure whether to treat that as a bug or as a weird misfeature > > enshrined in userland ABI: > > open("/tmp", O_CREAT, 0) => -EISDIR // LAST_NORM case >

Re: [PATCH RFC v2 1/3] drivers/platform/x86: add cpu physically hotplug driver

2013-06-05 Thread Gu Zheng
On 06/06/2013 09:40 AM, liguang wrote: > this driver will support cpu phyical add/removal automatically > after online/offline. if cpu hotpluged, cpu will not > online automatically, and for cpu offline, we try to > do actually eject if allowed for cpu like > "echo 1 >

[PATCH v2 2/2] dma: mmp_pdma: clear DRCMR when free a phy channel

2013-06-05 Thread Xiang Wang
From: Xiang Wang In mmp pdma, phy channels are allocated/freed dynamically. The mapping from DMA request to DMA channel number in DRCMR should be cleared when a phy channel is freed. Otherwise conflicts will happen when: 1. A is using channel 2 and free it after finished, but A still maps to

Re: [PATCH] Modify UEFI anti-bricking code

2013-06-05 Thread joeyli
於 三,2013-06-05 於 16:08 +,Matthew Garrett 提到: > On Wed, 2013-06-05 at 16:59 +0100, Matt Fleming wrote: > > > + /* clean DUMMY object */ > > + efi.set_variable(efi_dummy_name, _DUMMY_GUID, 0, 0, NULL); > > Hm. Actually, is that going to work? From the spec: > The patch I tested on OVMF,

[PATCH v2 0/2] dma: mmp_pdma: Fix phy channels not protected issue

2013-06-05 Thread Xiang Wang
From: Xiang Wang This patch set deals with the issues that 1) phy channels are not protected in mmp_pdma. 2) dma request<->channel mapping is not cleared when a phy chan is freed. Xiang Wang (2): dma: mmp_pdma: add protect when alloc/free phy channels dma: mmp_pdma: clear DRCMR when free a

Re: [PATCH 2/3] sched: code refine in unthrottle_cfs_rq()

2013-06-05 Thread Michael Wang
On 06/05/2013 07:15 PM, Peter Zijlstra wrote: > On Tue, Jun 04, 2013 at 02:23:39PM +0800, Michael Wang wrote: >> Directly use rq to save some code. >> >> CC: Ingo Molnar >> CC: Peter Zijlstra >> Signed-off-by: Michael Wang > > Please send patches against tip/master; the below didn't apply

Re: [PATCH v2 1/3] sched: don't repeat the initialization in sched_init()

2013-06-05 Thread Michael Wang
On 06/05/2013 07:06 PM, Peter Zijlstra wrote: > On Wed, Jun 05, 2013 at 10:24:18AM +0800, Michael Wang wrote: >> v2: >> Move comments back before init_tg_cfs_entry(). (Thanks for the notify >> from pjt) >> >> In sched_init(), there is no need to initialize 'root_task_group.shares' and >>

Re: [PATCH 3/3] mtd: cfi_cmdset_0002: increase do_write_buffer() timeout

2013-06-05 Thread Huang Shijie
于 2013年06月06日 05:08, Brian Norris 写道: > Note that a 2-jiffy timeout does not, in fact, totally resolve my > problems; with a timeout of 2 jiffies, I still get a timeout that > (according to getnstimeofday()) occurs after only 56us. It does since the 2-jiffy does not resolve your problem, i suggest

Re: mmotm 2013-06-05-17-24 uploaded

2013-06-05 Thread Stephen Rothwell
Hi Andrew, On Wed, 05 Jun 2013 17:26:36 -0700 a...@linux-foundation.org wrote: > > linux-next-git-rejects.patch We must figure out why you sometimes get rejects that I do not get when I import your series into a git tree. However in this case you resolution is not quite right. It leaves 2

[RFC] ext4: simplify the code a bit

2013-06-05 Thread Stephen Rothwell
Hi guys, I noticed the following warning in a linux-next build: fs/ext4/inode.c: In function 'ext4_da_writepages': fs/ext4/inode.c:2212:6: warning: 'err' may be used uninitialized in this function [-Wmaybe-uninitialized] In tracking this down, I followed the call chains and discovered that

[PATCH v3.9 stable] PCI: acpiphp: Re-enumerate devices when host bridge receives Bus Check

2013-06-05 Thread Yinghai Lu
When a PCI host bridge device receives a Bus Check notification, we must re-enumerate starting with the bridge to discover changes (devices that have been added or removed). Prior to 668192b678 ("PCI: acpiphp: Move host bridge hotplug to pci_root.c"), this happened in

[PATCH RFC v2 0/3] add cpu physically hotplug driver

2013-06-05 Thread liguang
This patch-set try to support physically hot-plug/unplug a cpu automatically, that is: if you offline a cpu, it will automatically actually remove a cpu, and if you hot-plug a cpu, then it will online this cpu automatically. so, offline is just like eject, but eject attribute seems not available

[PATCH RFC v2 2/3] ec: add ec space notifier

2013-06-05 Thread liguang
add a notifier for anyone who are instresting in ec space changing. Signed-off-by: liguang --- drivers/acpi/ec.c| 32 include/linux/acpi.h |2 ++ 2 files changed, 34 insertions(+), 0 deletions(-) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c

[PATCH RFC v2 1/3] drivers/platform/x86: add cpu physically hotplug driver

2013-06-05 Thread liguang
this driver will support cpu phyical add/removal automatically after online/offline. if cpu hotpluged, cpu will not online automatically, and for cpu offline, we try to do actually eject if allowed for cpu like "echo 1 > /sys/bus/acpi/devices/LNXCPU\:0X/eject" this "echo ..." is only present for

[PATCH RFC v2 3/3] cpu_physic_hotplug: register handler for ec space notifier

2013-06-05 Thread liguang
Signed-off-by: liguang --- drivers/platform/x86/cpu_physic_hotplug.c | 30 ++-- 1 files changed, 27 insertions(+), 3 deletions(-) diff --git a/drivers/platform/x86/cpu_physic_hotplug.c b/drivers/platform/x86/cpu_physic_hotplug.c index a52c042..1cdac1b 100644 ---

Re: [PATCH v7 00/11] per-cgroup cpu-stat

2013-06-05 Thread Tejun Heo
Hello, Glauber. On Wed, May 29, 2013 at 03:03:11PM +0400, Glauber Costa wrote: > I am *not* going as far as marking cpuacct deprecated, because I think it > deserves a special discussion (even though my position in this matter is > widely > known), but all the infrastructure to make it happen is

Re: [PATCH] wait: fix false timeouts when using wait_event_timeout()

2013-06-05 Thread Tejun Heo
Hello, Oleg. On Wed, Jun 05, 2013 at 09:07:23PM +0200, Oleg Nesterov wrote: > And in fact, perhaps we can implement wait_event_common() and avoid the > code duplications? > > #define __wait_no_timeout(timeout) \ > (__builtin_constant_p(timeout) && (timeout) == >

Re: [PATCHv3 1/3] sched_clock: Add support for >32 bit sched_clock

2013-06-05 Thread Stephen Boyd
On 06/05, John Stultz wrote: > On 06/05/2013 04:54 PM, Stephen Boyd wrote: > > > >I've noticed that we probably need to update the mult/shift > >calculation similar to how clocksources are done. Should we > >just copy/paste the maxsec calculation code here or do something > >smarter? > > So, the

Re: [PATCH] spi/sirf: fix error propagation in spi_sirfsoc_probe()

2013-06-05 Thread Barry Song
2013/6/6 Barry Song <21cn...@gmail.com>: > 2013/6/6 Alexey Khoroshilov : >> If pinctrl_get_select_default() fails, spi_sirfsoc_probe() >> returns IS_ERR(sspi->p) instead of PTR_ERR(sspi->p). >> >> Found by Linux Driver Verification project (linuxtesting.org). >> >> Signed-off-by: Alexey

Re: [PATCH v4 0/5] clk: implement remuxing during set_rate

2013-06-05 Thread Haojian Zhuang
On Mon, May 20, 2013 at 9:28 PM, James Hogan wrote: > This patchset adds support for automatic selection of the best parent > for a clock mux, i.e. the one which can provide the closest clock rate > to that requested. It can be disabled by a new CLK_SET_RATE_NO_REPARENT > flag (which is set for

Re: [RFC] corner cases of open() on procfs symlinks

2013-06-05 Thread Linus Torvalds
On Thu, Jun 6, 2013 at 10:20 AM, Al Viro wrote: > I'm not sure whether to treat that as a bug or as a weird misfeature > enshrined in userland ABI: > open("/tmp", O_CREAT, 0) => -EISDIR // LAST_NORM case > open("/", O_CREAT, 0) => -EISDIR// LAST_ROOT >

Re: [PATCH] spi/sirf: fix error propagation in spi_sirfsoc_probe()

2013-06-05 Thread Barry Song
2013/6/6 Alexey Khoroshilov : > If pinctrl_get_select_default() fails, spi_sirfsoc_probe() > returns IS_ERR(sspi->p) instead of PTR_ERR(sspi->p). > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey Khoroshilov Acked-by: Barry Song > --- >

Re: stop_machine lockup issue in 3.9.y.

2013-06-05 Thread Eric Dumazet
On Wed, 2013-06-05 at 14:11 -0700, Tejun Heo wrote: > (cc'ing wireless crowd, tglx and Ingo. The original thread is at > http://thread.gmane.org/gmane.linux.kernel/1500158/focus=55005 ) > > Hello, Ben. > > On Wed, Jun 05, 2013 at 01:58:31PM -0700, Ben Greear wrote: > > Hmm, wonder if I found

[PATCH RFC 1/3] drivers/platform/x86: add cpu physically hotplug driver

2013-06-05 Thread liguang
this driver will support cpu phyical add/removal automatically after online/offline. if cpu hotpluged, cpu will not online automatically, and for cpu offline, we try to do actually eject if allowed for cpu like "echo 1 > /sys/bus/acpi/devices/LNXCPU\:0X/eject" this "echo ..." is only present for

[PATCH RFC 2/3] ec: add ec space notifier

2013-06-05 Thread liguang
add a notifier for anyone who are instresting in ec space changing. Signed-off-by: liguang --- drivers/acpi/ec.c| 32 include/linux/acpi.h |2 ++ 2 files changed, 34 insertions(+), 0 deletions(-) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c

[PATCH RFC 3/3] cpu_physic_hotplug: register handler for ec space notifier

2013-06-05 Thread liguang
Signed-off-by: liguang --- drivers/platform/x86/cpu_physic_hotplug.c | 27 +-- 1 files changed, 25 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/cpu_physic_hotplug.c b/drivers/platform/x86/cpu_physic_hotplug.c index a52c042..a84c999 100644 ---

[PATCH RFC 0/3] add cpu physically hotplug driver

2013-06-05 Thread liguang
This patch-set try to support physically hot-plug/unplug a cpu automatically, that is: if you offline a cpu, it will automatically actually remove a cpu, and if you hot-plug a cpu, then it will online this cpu automatically. so, offline is just like eject, but eject attribute seems not available

Re: [PATCH] usbnet: improve/fix status interrupt endpoint interval

2013-06-05 Thread Ming Lei
On Thu, Jun 6, 2013 at 12:34 AM, Andreas Mohr wrote: > Hi, > > On Wed, Jun 05, 2013 at 09:22:25AM +0800, Ming Lei wrote: >> On Wed, Jun 5, 2013 at 2:28 AM, Andreas Mohr wrote: >> > >> > From 307685fe8e6dfc8181e30167b9c31479332cb22f Mon Sep 17 00:00:00 2001 >> > From: Andreas Mohr >> > Date:

Re: [PATCH v2 3/4] perf report: Add --time-filter option

2013-06-05 Thread David Ahern
On 6/2/13 10:44 PM, Namhyung Kim wrote: From: Namhyung Kim The --time-filter option is for limiting samples within a range of time. A time range looks like - and at most one of them can be omitted. This can be useful when analyzing a part of a huge data only. Cc: Joonsoo Kim Cc: David

Re: [PATCH v2 2/4] perf script: Add --time-filter option

2013-06-05 Thread David Ahern
On 6/2/13 10:44 PM, Namhyung Kim wrote: From: Namhyung Kim The --time-filter option is for limiting samples within a range of time. A time range looks like - and at most one of them can be omitted. For instance: $ perf script --time-filter -2178446.12 ... xchat 1772 [002]

  1   2   3   4   5   6   7   8   9   10   >