[patch 2/2] mm, oom: fix race when specifying a thread as the oom origin

2012-11-08 Thread David Rientjes
test_set_oom_score_adj() and compare_swap_oom_score_adj() are used to specify that current should be killed first if an oom condition occurs in between the two calls. The usage is short oom_score_adj = test_set_oom_score_adj(OOM_SCORE_ADJ_MAX); ...

[patch 1/2] mm, oom: change type of oom_score_adj to short

2012-11-08 Thread David Rientjes
The maximum oom_score_adj is 1000 and the minimum oom_score_adj is -1000, so this range can be represented by the signed short type with no functional change. The extra space this frees up in struct signal_struct will be used for per-thread oom kill flags in the next patch. Signed-off-by: David

[PATCH -next] mtip32xx: fix potential NULL pointer dereference in mtip_timeout_function()

2012-11-08 Thread Wei Yongjun
From: Wei Yongjun The dereference to port should be moved below the NULL test. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun --- drivers/block/mtip32xx/mtip32xx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

Re: [PATCH v7 0/3] Add modules to support realtek PCIE card reader

2012-11-08 Thread Samuel Ortiz
Hi Wei, On Mon, Oct 29, 2012 at 01:49:28PM +0800, wei_w...@realsil.com.cn wrote: > From: Wei WANG > > Support for Realtek PCI-Express driver-based card readers including rts5209, > rts5229 and rtl8411. All 3 patches applied now, thanks a lot. I also fixed the Kconfig entry where you forgot to

Re: [PATCH 3/9] cgroup: implement generic child / descendant walk macros

2012-11-08 Thread Michal Hocko
On Sat 03-11-12 01:38:29, Tejun Heo wrote: > Currently, cgroup doesn't provide any generic helper for walking a > given cgroup's children or descendants. This patch adds the following > three macros. > > * cgroup_for_each_child() - walk immediate children of a cgroup. > > *

Re: [BUGFIX] PM: Fix active child counting when disabled and forbidden

2012-11-08 Thread Rafael J. Wysocki
On Thursday, November 08, 2012 10:04:36 AM Huang Ying wrote: > On Thu, 2012-11-08 at 02:35 +0100, Rafael J. Wysocki wrote: > > On Thursday, November 08, 2012 09:15:08 AM Huang Ying wrote: > > > On Thu, 2012-11-08 at 00:09 +0100, Rafael J. Wysocki wrote: [...] > > > I think the patch can fix the

Re: [PATCH] pwm: lpc32xx - Fix the PWM polarity

2012-11-08 Thread Roland Stigge
On 07/11/12 16:25, Alban Bedel wrote: > Signed-off-by: Alban Bedel > --- > drivers/pwm/pwm-lpc32xx.c |6 +- > 1 files changed, 5 insertions(+), 1 deletions(-) > > diff --git a/drivers/pwm/pwm-lpc32xx.c b/drivers/pwm/pwm-lpc32xx.c > index adb87f0..0dc278d 100644 > ---

Re: [PATCH 4/9] cgroup_freezer: trivial cleanups

2012-11-08 Thread Michal Hocko
On Sat 03-11-12 01:38:30, Tejun Heo wrote: > * Clean-up indentation and line-breaks. Drop the invalid comment > about freezer->lock. > > * Make all internal functions take @freezer instead of both @cgroup > and @freezer. > > Signed-off-by: Tejun Heo Looks reasonable Reviewed-by: Michal

[PATCH] tools: hv: Netlink source address validation allows DoS

2012-11-08 Thread Tomas Hozza
The source code without this patch caused hypervkvpd to exit when it processed a spoofed Netlink packet which has been sent from an untrusted local user. Now Netlink messages with a non-zero nl_pid source address are ignored and a warning is printed into the syslog. Signed-off-by: Tomas Hozza

Re: [PATCH 2/4] ARM: EXYNOS: PL330 MDMA1 fix for revision 0 of Exynos4210 SOC

2012-11-08 Thread Bartlomiej Zolnierkiewicz
On Thursday 08 November 2012 05:49:47 Kukjin Kim wrote: > Bartlomiej Zolnierkiewicz wrote: > > > > > Hmm...above change and adding definition of EXYNOS_PA_S_MDMA1 address > > > can fix the problem you commented on EXYNOS4210 Rev0 without others?... > > > > The problem is affecting only

[PATCH] virtio_scsi: fix memory leak on full queue condition.

2012-11-08 Thread Eric Northup
virtscsi_queuecommand was leaking memory when the virtio queue was full. Tested: Guest operates correctly even with very small queue sizes, validated we're not leaking kmalloc-192 sized allocations anymore. Signed-off-by: Eric Northup --- drivers/scsi/virtio_scsi.c |2 ++ 1 files changed,

Re: [PATCH 5/9] cgroup_freezer: prepare freezer_change_state() for full hierarchy support

2012-11-08 Thread Michal Hocko
On Sat 03-11-12 01:38:31, Tejun Heo wrote: > * Make freezer_change_state() take bool @freeze instead of enum > freezer_state. > > * Separate out freezer_apply_state() out of freezer_change_state(). > This makes freezer_change_state() a rather silly thin wrapper. It > will be filled with

Re: [PATCH 4/4] Staging: winbond: wb35rx_s: Fixed coding style issue

2012-11-08 Thread Adil Mujeeb
On Thu, Nov 8, 2012 at 12:59 PM, Dan Carpenter wrote: > It's better to use more descriptive subjects on the patches. > > This one could probably have been broken into smaller patches > [patch 4/x] Staging: winbond: wb35rx_s: fix white space > [patch 5/x] Staging: winbond: wb35rx_s: fix comments >

Re: [PATCH V3] firmware loader: Fix the race FW_STATUS_DONE is followed by class_timeout

2012-11-08 Thread Ming Lei
On Thu, Nov 8, 2012 at 7:14 PM, Chuansheng Liu wrote: > > There is a race as below when calling request_firmware(): > CPU1 CPU2 > write 0 > loading > mutex_lock(_lock) > ... > set_bit FW_STATUS_DONE class_timeout is coming >

[PATCH] DMA: add cpu_relax() to busy-loop in dma_sync_wait()

2012-11-08 Thread Bartlomiej Zolnierkiewicz
From: Bartlomiej Zolnierkiewicz Subject: [PATCH] DMA: add cpu_relax() to busy-loop in dma_sync_wait() Removal of the busy-loop from dma_sync_wait() is not a trivial task so just add cpu_relax() to the loop for now. Cc: Vinod Koul Cc: Dan Williams Cc: Tomasz Figa Signed-off-by: Bartlomiej

[PATCH] async_tx: fix checking of dma_wait_for_async_tx() return value

2012-11-08 Thread Bartlomiej Zolnierkiewicz
From: Bartlomiej Zolnierkiewicz Subject: [PATCH] async_tx: fix checking of dma_wait_for_async_tx() return value dma_wait_for_async_tx() can also return DMA_PAUSED (which should be considered as error). Cc: Vinod Koul Cc: Dan Williams Cc: Tomasz Figa Signed-off-by: Bartlomiej Zolnierkiewicz

[PATCH 1/2] DMA: remove dma_async_memcpy_pending() macro

2012-11-08 Thread Bartlomiej Zolnierkiewicz
From: Bartlomiej Zolnierkiewicz Subject: [PATCH 1/2] DMA: remove dma_async_memcpy_pending() macro Just use dma_async_issue_pending() directly. Cc: Vinod Koul Cc: Dan Williams Cc: Tomasz Figa Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Kyungmin Park ---

[PATCH 2/2] DMA: remove dma_async_memcpy_complete() macro

2012-11-08 Thread Bartlomiej Zolnierkiewicz
From: Bartlomiej Zolnierkiewicz Subject: [PATCH 2/2] DMA: remove dma_async_memcpy_complete() macro Just use dma_async_is_tx_complete() directly. Cc: Vinod Koul Cc: Dan Williams Cc: Tomasz Figa Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Kyungmin Park ---

[PATCH] raid5: panic() on dma_wait_for_async_tx() error

2012-11-08 Thread Bartlomiej Zolnierkiewicz
From: Bartlomiej Zolnierkiewicz Subject: [PATCH] raid5: panic() on dma_wait_for_async_tx() error There is not much we can do on dma_wait_for_async_tx() error so just panic() for now. Cc: Neil Brown Cc: Vinod Koul Cc: Dan Williams Cc: Tomasz Figa Signed-off-by: Bartlomiej Zolnierkiewicz

[PATCH] DMA: remove unused support for MEMSET operations

2012-11-08 Thread Bartlomiej Zolnierkiewicz
From: Bartlomiej Zolnierkiewicz Subject: [PATCH] DMA: remove unused support for MEMSET operations There have never been any real users of MEMSET operations since they have been introduced in January 2007 (commit 7405f74badf46b5d023c5d2b670b4471525f6c91 "dmaengine: refactor dmaengine around

[GIT PULL] s390 patches for the 3.7-rc5

2012-11-08 Thread Martin Schwidefsky
Hi Linus, please pull from the 'for-linus' branch of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git for-linus to receive a couple of bug fixes. I keep the fingers crossed that we now got transparent huge pages ready for prime time. Cornelia Huck (1): s390: Move css

Re: [RFC] Second attempt at kernel secure boot support

2012-11-08 Thread James Courtier-Dutton
Hi, The basis for any secure boot is a way to detect that the system has been tampered with or not. "Tamper Evidence". There are two main vectors for a system to be tampered with. Someone local to the machine and remote users who can access the machine across a network interface. (this includes

Re: [PATCH v2 2/2] therma: exynos: Supports thermal tripping

2012-11-08 Thread Amit Kachhap
On 31 October 2012 12:17, Jonghwan Choi wrote: > TMU urgently sends active-high signal (thermal trip) to PMU, > and thermal tripping by hardware logic i.e PMU is performed. > Thermal tripping means that PMU cut off the whole power of SoC > by controlling external voltage regulator. > >

Re: [PATCH] pwm: lpc32xx - Fix the PWM polarity

2012-11-08 Thread Alban Bedel
On Thu, 08 Nov 2012 10:51:35 +0100 Roland Stigge wrote: > On 07/11/12 16:25, Alban Bedel wrote: > > Signed-off-by: Alban Bedel > > --- > > drivers/pwm/pwm-lpc32xx.c |6 +- > > 1 files changed, 5 insertions(+), 1 deletions(-) > > > > diff --git a/drivers/pwm/pwm-lpc32xx.c

Re: [RFC] Device Tree Overlays Proposal (Was Re: capebus moving omap_devices to mach-omap2)

2012-11-08 Thread Cousson, Benoit
+ Peter Hi Stephen, On 11/7/2012 6:25 PM, Stephen Warren wrote: On 11/07/2012 03:19 AM, Benoit Cousson wrote: Hi Panto, On 11/07/2012 09:13 AM, Pantelis Antoniou wrote: Hi Grant On Nov 6, 2012, at 9:45 PM, Grant Likely wrote: On Tue, Nov 6, 2012 at 7:34 PM, Pantelis Antoniou wrote: [

[PATCH] ARM: plat-versatile: move secondary CPU startup code out of .init for hotplug

2012-11-08 Thread Claudio Fontana
Using __CPUINIT instead of __INIT puts the secondary CPU startup code into the "right" section: it will not be freed in hotplug configurations, allowing hot-add of cpus, while still getting freed in non-hotplug configs. Signed-off-by: Claudio Fontana --- arch/arm/plat-versatile/headsmp.S | 2

Re: [PATCH 6/9] cgroup_freezer: make freezer->state mask of flags

2012-11-08 Thread Michal Hocko
On Sat 03-11-12 01:38:32, Tejun Heo wrote: > freezer->state was an enum value - one of THAWED, FREEZING and FROZEN. > As the scheduled full hierarchy support requires more than one > freezing condition, switch it to mask of flags. If FREEZING is not > set, it's thawed. FREEZING is set if

Fix perf DSOs' map address if .text is not the first secion of vmlinux

2012-11-08 Thread Tony Lu
>From 1bacfabf8369764126758bbbea1d3963ac778cce Mon Sep 17 00:00:00 2001 From: Lu Zhigang Date: Thu, 8 Nov 2012 04:31:05 -0500 Subject: [PATCH 1/1] perf symbol: Don't assume .text section is the first section of vmlinux The start address derived from /proc/kallsyms in is the start address of

Re: [PATCH] smack: SMACK_MAGIC to include/uapi/linux/magic.h

2012-11-08 Thread Jarkko Sakkinen
On Tue, Nov 6, 2012 at 11:59 PM, Casey Schaufler wrote: > > On 11/6/2012 12:17 AM, Jarkko Sakkinen wrote: > > SMACK_MAGIC moved to a proper place for easy user space access > > (i.e. libsmack). > > > > Signed-off-by: Jarkko Sakkinen > > --- > > include/uapi/linux/magic.h |1 + > >

[PATCH] virtio: Don't access index after unregister.

2012-11-08 Thread Cornelia Huck
Virtio wants to release used indices after the corresponding virtio device has been unregistered. However, virtio does not hold an extra reference, giving up its last reference with device_unregister(), making accessing dev->index afterwards invalid. I actually saw problems when testing my

Re: [PATCH] pwm: lpc32xx - Fix the PWM polarity

2012-11-08 Thread Roland Stigge
On 08/11/12 11:33, Alban Bedel wrote: > On Thu, 08 Nov 2012 10:51:35 +0100 > Roland Stigge wrote: > >> On 07/11/12 16:25, Alban Bedel wrote: >>> Signed-off-by: Alban Bedel >>> --- >>> drivers/pwm/pwm-lpc32xx.c |6 +- >>> 1 files changed, 5 insertions(+), 1 deletions(-) >>> >>> diff

[Patch v4 0/7] acpi,memory-hotplug : implement framework for hot removing memory

2012-11-08 Thread Wen Congyang
The memory device can be removed by 2 ways: 1. send eject request by SCI 2. echo 1 >/sys/bus/pci/devices/PNP0C80:XX/eject In the 1st case, acpi_memory_disable_device() will be called. In the 2nd case, acpi_memory_device_remove() will be called. acpi_memory_device_remove() will also be called when

[Patch v4 2/7] acpi,memory-hotplug : add memory offline code to acpi_memory_device_remove()

2012-11-08 Thread Wen Congyang
From: Yasuaki Ishimatsu The memory device can be removed by 2 ways: 1. send eject request by SCI 2. echo 1 >/sys/bus/pci/devices/PNP0C80:XX/eject In the 1st case, acpi_memory_disable_device() will be called. In the 2nd case, acpi_memory_device_remove() will be called.

[Patch v4 3/7] acpi_memhotplug.c: fix memory leak when memory device is unbound from the module acpi_memhotplug

2012-11-08 Thread Wen Congyang
We allocate memory to store acpi_memory_info, so we should free it before freeing mem_device. CC: David Rientjes CC: Jiang Liu CC: Len Brown CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: Christoph Lameter Cc: Minchan Kim CC: Andrew Morton CC: KOSAKI Motohiro CC: Yasuaki Ishimatsu

[Patch v4 1/7] acpi,memory-hotplug: introduce a mutex lock to protect the list in acpi_memory_device

2012-11-08 Thread Wen Congyang
The memory device can be removed by 2 ways: 1. send eject request by SCI 2. echo 1 >/sys/bus/pci/devices/PNP0C80:XX/eject This 2 events may happen at the same time, so we may touch acpi_memory_device.res_list at the same time. This patch introduce a lock to protect this list. CC: David Rientjes

[Patch v4 6/7] acpi_memhotplug.c: bind the memory device when the driver is being loaded

2012-11-08 Thread Wen Congyang
We had introduced acpi_hotmem_initialized to avoid strange add_memory fail message. But the memory device may not be used by the kernel, and the device should be bound when the driver is being loaded. Remove acpi_hotmem_initialized to allow that the device can be bound when the driver is being

[Patch v4 4/7] acpi_memhotplug.c: free memory device if acpi_memory_enable_device() failed

2012-11-08 Thread Wen Congyang
If acpi_memory_enable_device() fails, acpi_memory_enable_device() will return a non-zero value, which means we fail to bind the memory device to this driver. So we should free memory device before acpi_memory_device_add() returns. CC: David Rientjes CC: Jiang Liu CC: Len Brown CC: Benjamin

[Patch v4 5/7] acpi_memhotplug.c: don't allow to eject the memory device if it is being used

2012-11-08 Thread Wen Congyang
We eject the memory device even if it is in use. It is very dangerous, and it will cause the kernel to be panicked. CC: David Rientjes CC: Jiang Liu CC: Len Brown CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: Christoph Lameter Cc: Minchan Kim CC: Andrew Morton CC: KOSAKI Motohiro

[Patch v4 7/7] acpi_memhotplug.c: auto bind the memory device which is hotplugged before the driver is loaded

2012-11-08 Thread Wen Congyang
If the memory device is hotplugged before the driver is loaded, the user cannot see this device under the directory /sys/bus/acpi/devices/, and the user cannot bind it by hand after the driver is loaded. This patch introduces a new feature to bind such device when the driver is being loaded. CC:

Re: [PATCH v6 19/29] memcg: infrastructure to match an allocation to the right cache

2012-11-08 Thread Michal Hocko
On Tue 06-11-12 09:03:54, Michal Hocko wrote: > On Mon 05-11-12 16:28:37, Andrew Morton wrote: > > On Thu, 1 Nov 2012 16:07:35 +0400 > > Glauber Costa wrote: > > > > > +static __always_inline struct kmem_cache * > > > +memcg_kmem_get_cache(struct kmem_cache *cachep, gfp_t gfp) > > > > I still

Re: [PATCH] DMA: remove unused support for MEMSET operations

2012-11-08 Thread Alan Cox
On Thu, 08 Nov 2012 10:58:17 +0100 Bartlomiej Zolnierkiewicz wrote: > From: Bartlomiej Zolnierkiewicz > Subject: [PATCH] DMA: remove unused support for MEMSET operations > > There have never been any real users of MEMSET operations In tree users. And is it broken, if not why do you want to

Re: [PATCH] raid5: panic() on dma_wait_for_async_tx() error

2012-11-08 Thread Alan Cox
On Thu, 08 Nov 2012 11:06:29 +0100 Bartlomiej Zolnierkiewicz wrote: > From: Bartlomiej Zolnierkiewicz > Subject: [PATCH] raid5: panic() on dma_wait_for_async_tx() error > > There is not much we can do on dma_wait_for_async_tx() error > so just panic() for now. > > Cc: Neil Brown > Cc: Vinod

Re: [RFC] Second attempt at kernel secure boot support

2012-11-08 Thread Alan Cox
> You have a fair chance of protecting via physical means (Locked rooms, > Background checks on users etc.) of preventing a user with malicious intent > to access the local machine. So called "secure boot" doesn't deal with any kind of physical access, which also means its useless if a device is

SR-IOV problem with Intel 82599EB (not enough MMIO resources for SR-IOV)

2012-11-08 Thread pkill.2012
Hello, I installed kvm and tried to use SR-IOV virtualizaton for 82599EB(Intel XT-520 T2) dual port card with latest ixgbe driver(version:3.11.33) , kernel2.6.32-279.14.1(OS:Centos6.3) ,after configuration and reboot It seems that only first port of the card's VFs works,second port of the

Re: SR-IOV problem with Intel 82599EB (not enough MMIO resources for SR-IOV)

2012-11-08 Thread Jeff Kirsher
On 11/08/2012 03:15 AM, pkill.2012 wrote: > Hello, > > I installed kvm and tried to use SR-IOV virtualizaton for 82599EB(Intel > XT-520 T2) dual port card with latest ixgbe driver(version:3.11.33) , > kernel2.6.32-279.14.1(OS:Centos6.3) ,after configuration and reboot > It seems that only

Re: [PATCH v2 1/2] thermal: exynos: Fix wrong bit to control tmu core

2012-11-08 Thread Amit Kachhap
Hi On 31 October 2012 12:17, Jonghwan Choi wrote: > [0]bit is used to enable/disable tmu core. [1] bit is a reserved bit. > > Signed-off-by: Jonghwan Choi > --- > drivers/thermal/exynos_thermal.c |4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git

Re: [PATCH] pwm: lpc32xx - Fix the PWM polarity

2012-11-08 Thread Alban Bedel
On Thu, 08 Nov 2012 11:44:48 +0100 Roland Stigge wrote: > On 08/11/12 11:33, Alban Bedel wrote: > > On Thu, 08 Nov 2012 10:51:35 +0100 > > Roland Stigge wrote: > > > >> On 07/11/12 16:25, Alban Bedel wrote: > >>> Signed-off-by: Alban Bedel > >>> --- > >>> drivers/pwm/pwm-lpc32xx.c |6

Re: [PATCH] raid5: panic() on dma_wait_for_async_tx() error

2012-11-08 Thread Bartlomiej Zolnierkiewicz
On Thursday 08 November 2012 12:15:26 Alan Cox wrote: > On Thu, 08 Nov 2012 11:06:29 +0100 > Bartlomiej Zolnierkiewicz wrote: > > > From: Bartlomiej Zolnierkiewicz > > Subject: [PATCH] raid5: panic() on dma_wait_for_async_tx() error > > > > There is not much we can do on

Re: [PATCH] DMA: remove unused support for MEMSET operations

2012-11-08 Thread Bartlomiej Zolnierkiewicz
On Thursday 08 November 2012 12:12:31 Alan Cox wrote: > On Thu, 08 Nov 2012 10:58:17 +0100 > Bartlomiej Zolnierkiewicz wrote: > > > From: Bartlomiej Zolnierkiewicz > > Subject: [PATCH] DMA: remove unused support for MEMSET operations > > > > There have never been any real users of MEMSET

Re: [PATCH] DMA: remove unused support for MEMSET operations

2012-11-08 Thread Alan Cox
On Thu, 08 Nov 2012 12:22:05 +0100 Bartlomiej Zolnierkiewicz wrote: > On Thursday 08 November 2012 12:12:31 Alan Cox wrote: > > On Thu, 08 Nov 2012 10:58:17 +0100 > > Bartlomiej Zolnierkiewicz wrote: > > > > > From: Bartlomiej Zolnierkiewicz > > > Subject: [PATCH] DMA: remove unused support

[PATCH] pwm: lpc32xx - Fix the PWM polarity

2012-11-08 Thread Alban Bedel
The duty cycles value goes from 1 (99% HIGH) to 256 (0% HIGH) but it is stored modulo 256 in the register as it is only 8 bits wide. Signed-off-by: Alban Bedel --- drivers/pwm/pwm-lpc32xx.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/pwm/pwm-lpc32xx.c

Re: [PATCH] virtio: Don't access index after unregister.

2012-11-08 Thread Sjur Brændeland
On Thu, Nov 8, 2012 at 11:43 AM, Cornelia Huck wrote: > Virtio wants to release used indices after the corresponding > virtio device has been unregistered. However, virtio does not > hold an extra reference, giving up its last reference with > device_unregister(), making accessing dev->index

Re: [PATCH -next] mtip32xx: fix potential NULL pointer dereference in mtip_timeout_function()

2012-11-08 Thread Jens Axboe
On 2012-11-08 10:35, Wei Yongjun wrote: > From: Wei Yongjun > > The dereference to port should be moved below the NULL test. > > dpatch engine is used to auto generate this patch. > (https://github.com/weiyj/dpatch) Thanks, it definitely doesn't make sense to check for !port after having

Re: [PATCH 2/3] pwm: New driver to support PWMs on TWL4030/6030 series of PMICs

2012-11-08 Thread Grazvydas Ignotas
On Thu, Nov 8, 2012 at 9:14 AM, Péter Ujfalusi wrote: > On 11/07/2012 06:50 PM, Grazvydas Ignotas wrote: >>> + if (pwm->hwpwm) { >>> + /* PWM 1 */ >>> + mask = TWL4030_GPIO7_VIBRASYNC_PWM1_MASK; >>> + bits = TWL4030_GPIO7_VIBRASYNC_PWM1_PWM1; >>> +

[PATCH 1/2] ARM: ux500: add PRCM register base for pinctrl

2012-11-08 Thread Linus Walleij
From: Jonas Aaberg This adds the PRCM register range base as a resource to the pinctrl driver do we can break the dependency to the PRCMU driver and handle these registers in the driver alone. Cc: a...@kernel.org Signed-off-by: Jonas Aaberg Signed-off-by: Linus Walleij --- ARM SoC guys: this

[PATCH 2/2] pinctrl/nomadik: make independent of prcmu driver

2012-11-08 Thread Linus Walleij
From: Jonas Aaberg Currently there are some unnecessary criss-cross dependencies between the PRCMU driver in MFD and a lot of other drivers, mainly because other drivers need to poke around in the PRCM register range. In cases like this there are actually just a few select registers that the

Re: [headache] 3.7.0-rc2 can't handle mutt (with 3.7G mail file) +FF (4 tabs) on a 4G memory+4 core system ?

2012-11-08 Thread Ortwin Glück
To me this looks like an issue with swap. Can you try without swap (swapoff)? Ortwin -- 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

Re: PT_EXITKILL (Was: pdeath_signal)

2012-11-08 Thread Pedro Alves
On 11/07/2012 03:09 PM, Oleg Nesterov wrote: >> > > > > What I would IDEALLY like to have is a call, probably a ptrace >> > > > > option, >> > > > > where the parent can request: "If I am ever to terminate or be >> > > > > killed, >> > > > > then my ptraced son MUST die as well". >> > > >> > >

Re: [PATCH 1/1] TPM: STMicroelectronics ST33 I2C V1.2.0

2012-11-08 Thread Rusty Russell
Mathias Leblanc writes: > +static int interrupts ; > +module_param(interrupts, bool, 0444); > +MODULE_PARM_DESC(interrupts, "Enable interrupts"); > + > +static int power_mgt = 1; > +module_param(power_mgt, bool, 0444); > +MODULE_PARM_DESC(power_mgt, "Power Management"); These are not bools, so

Re: [PATCH] DMA: remove unused support for MEMSET operations

2012-11-08 Thread Bartlomiej Zolnierkiewicz
On Thursday 08 November 2012 12:31:48 Alan Cox wrote: > On Thu, 08 Nov 2012 12:22:05 +0100 > Bartlomiej Zolnierkiewicz wrote: > > > On Thursday 08 November 2012 12:12:31 Alan Cox wrote: > > > On Thu, 08 Nov 2012 10:58:17 +0100 > > > Bartlomiej Zolnierkiewicz wrote: > > > > > > > From:

Re: [PATCH] virtio-mmio: Fix irq parsing in command line parameter

2012-11-08 Thread Rusty Russell
Lee Jones writes: >> > Resorted to poaching now have we Pawel? > >> I hope you were joking! > > Yes, of course. I thought that was clearly indicated by the jovial winking > smiley. :) > > I realise it wasn't obvious soley by this exchange, but Pawel and I are > actually ol' friends. > >> Doing

Re: [PATCH 1/2] kfifo: round up the fifo size power of 2

2012-11-08 Thread Yuanhan Liu
On Tue, Oct 30, 2012 at 11:52:10PM -0700, Andrew Morton wrote: > On Wed, 31 Oct 2012 07:30:33 +0100 Stefani Seibold > wrote: > > > > Yes, and I guess the same to give them a 64-element one. > > > > > > > > > > > If there's absolutely no prospect that the kfifo code will ever support > > > >

Re: [PATCH 3/3] pwm: New driver to support PWM driven LEDs on TWL4030/6030 series of PMICs

2012-11-08 Thread Grazvydas Ignotas
On Thu, Nov 8, 2012 at 9:34 AM, Péter Ujfalusi wrote: > On 11/07/2012 07:12 PM, Grazvydas Ignotas wrote: >>> +static int twl4030_pwmled_config(struct pwm_chip *chip, struct pwm_device >>> *pwm, >>> + int duty_ns, int period_ns) >>> +{ >>> + int duty_cycle =

Re: [PATCH 1/2] ARM: ux500: add PRCM register base for pinctrl

2012-11-08 Thread Arnd Bergmann
On Thursday 08 November 2012, Linus Walleij wrote: > From: Jonas Aaberg > > This adds the PRCM register range base as a resource to > the pinctrl driver do we can break the dependency to the > PRCMU driver and handle these registers in the driver > alone. > > Cc: a...@kernel.org >

PROBLEM: oops in _raw_spin_lock_irqsave

2012-11-08 Thread Luigi Tarenga
Hi guys, I report here a oops happened on my laptop running centos 6.3 with vanilla kernel 3.6.6. The laptop is configured like an AP running hostapd, dnsmasq, openvpn, miniupnpd. At some point I noticed all the logs of iptables going to console (usually they go in a separeted file). Looking at

Re: [PATCH v7 0/3] Add modules to support realtek PCIE card reade

2012-11-08 Thread Arnd Bergmann
On Thursday 08 November 2012, wwang wrote: > > 于 2012年11月08日 12:01, Alex Dubov 写道: > > Hi, > >> Do you have any comment on the MEMSTICK part in this v7 patchset? Can > >> you help to merge the patch to the kernel tree? > > > > I'm afraid that presently I don't have much time to look at the

Re: PT_EXITKILL (Was: pdeath_signal)

2012-11-08 Thread Oleg Nesterov
Hi Amnon, On 11/08, Amnon Shiloh wrote: > > Thanks for the patch, I tried it and it works nicely! OK, thanks. I'll wait for other comments a bit and then send the patch to Andrew. > Also, I just noticed that this new option (PTRACE_O_EXITKILL) is not > safe with ptrace(PTRACE_TRACEME)+execve,

Re: [PATCH 1/2] memcg, oom: provide more precise dump info while memcg oom happening

2012-11-08 Thread Sha Zhengju
On 11/08/2012 02:02 AM, David Rientjes wrote: On Wed, 7 Nov 2012, Sha Zhengju wrote: diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 0eab7d5..2df5e72 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -118,6 +118,14 @@ static const char * const mem_cgroup_events_names[] = {

Re: [PATCH 1/2] kfifo: round up the fifo size power of 2

2012-11-08 Thread Stefani Seibold
Am Donnerstag, den 08.11.2012, 20:24 +0800 schrieb Yuanhan Liu: > On Tue, Oct 30, 2012 at 11:52:10PM -0700, Andrew Morton wrote: > > On Wed, 31 Oct 2012 07:30:33 +0100 Stefani Seibold > > wrote: > > > > > > Yes, and I guess the same to give them a 64-element one. > > > > > > > > > > > > > >

Re: UAPI for new arches (was Re: [GIT PULL] User API Disintegrate: Preparatory patches)

2012-11-08 Thread David Howells
Vineet Gupta wrote: > I'm planning to submit ARC Linux kernel port (from Synopsys) for review > on lkml and arch mailing lists. I already have a a 3.7-rc3 based kernel > (modulo the arch UAPI split). What would be the best way to get the UAPI > split done. Do you want the headers to be split in

Re: [net-next:master 209/235] drivers/net/usb/smsc95xx.c:1134:39-50: ERROR: reference preceded by free on line 1136

2012-11-08 Thread Fengguang Wu
Julia, On Thu, Nov 08, 2012 at 09:08:04AM +0100, Julia Lawall wrote: > It's a false positive because check_warn_return does a return. Right. > But I wonder if there is a way that we can encourage people not to > do things like that? Well I suspect the memory leak bug 06a221be0 tries to fix

Re: PT_EXITKILL (Was: pdeath_signal)

2012-11-08 Thread Oleg Nesterov
On 11/08, Pedro Alves wrote: > > On 11/07/2012 03:09 PM, Oleg Nesterov wrote: > > > OK. Please see the untested/uncompiled (but trivial) patch below > > > > - it adds PTRACE_O_EXITKILL. A better name? > > > > - A better numeric value? Note that the new option is not equal to > > the

Re: [PATCH 1/2] memcg, oom: provide more precise dump info while memcg oom happening

2012-11-08 Thread Michal Hocko
On Thu 08-11-12 20:37:45, Sha Zhengju wrote: > On 11/08/2012 02:02 AM, David Rientjes wrote: > >On Wed, 7 Nov 2012, Sha Zhengju wrote: [..] > >>+ else > >>+ show_mem(SHOW_MEM_FILTER_NODES); > >Well that's disappointing if memcg == root_mem_cgroup, we'd probably like > >to know the

Re: [PATCH 1/2] memcg, oom: provide more precise dump info while memcg oom happening

2012-11-08 Thread Sha Zhengju
On 11/08/2012 06:17 AM, Michal Hocko wrote: On Wed 07-11-12 16:41:36, Sha Zhengju wrote: From: Sha Zhengju Current, when a memcg oom is happening the oom dump messages is still global state and provides few useful info for users. This patch prints more pointed memcg page statistics for

Re: [PATCH 7/9] cgroup_freezer: introduce CGROUP_FREEZING_[SELF|PARENT]

2012-11-08 Thread Michal Hocko
On Sat 03-11-12 01:38:33, Tejun Heo wrote: > Introduce FREEZING_SELF and FREEZING_PARENT and make FREEZING OR of > the two flags. This is to prepare for full hierarchy support. > > freezer_apply_date() is updated such that it can handle setting and > clearing of both flags. The two flags are

PF_NO_SIGSTOP (Was: PT_EXITKILL)

2012-11-08 Thread Oleg Nesterov
On 11/08, Amnon Shiloh wrote: > > > > What I wish is that I could request (using "prctl" or whatever): > > > "If a non-privileged user sends me a SIGSTOP, then let it be converted > > > into...", > > > > I hope we won't do this ;) But I am not going to argue if you convince > > other people. > >

[GIT PULL] UAPI: perf fixes

2012-11-08 Thread David Howells
Hi Arnaldo, Assuming my patches should be based on your perf/core branch, could you pull from my git tree at tag perf-uapi-20121108 into your perf/core branch? Note the tree also contains a uapi-perf-x86-20121108 tag that has the UAPI disintegration branch for x86 merged on top for reference

Re: [PATCH 1/5] gpiolib: fix up function prototypes etc

2012-11-08 Thread Linus Walleij
On Wed, Nov 7, 2012 at 6:09 AM, Viresh Kumar wrote: > On 6 November 2012 20:46, Linus Walleij >> -void gpiochip_add_pin_range(struct gpio_chip *chip, const char >> *pinctl_name, >> - unsigned int pin_base, unsigned int npins); >> -void gpiochip_remove_pin_ranges(struct gpio_chip

Re: [PATCH 3/5] gpiolib: remove duplicate pin range code

2012-11-08 Thread Linus Walleij
On Wed, Nov 7, 2012 at 6:14 AM, viresh kumar wrote: > On Tue, Nov 6, 2012 at 8:46 PM, Linus Walleij > wrote: >> From: Linus Walleij >> >> Commit 69e1601bca88809dc118abd1becb02c15a02ec71 >> "gpiolib: provide provision to register pin ranges" >> >> Introduced both of_gpiochip_remove_pin_range()

Re: [PATCH 3/3] pwm: New driver to support PWM driven LEDs on TWL4030/6030 series of PMICs

2012-11-08 Thread Péter Ujfalusi
On 11/08/2012 01:29 PM, Grazvydas Ignotas wrote: >> But I want to note that I'm currently trying to clean up the mess around >> twl-core. In my view we have quite a bit of redundancy in there. The PWM A/B >> is for driving the LED A/B outputs. We should have only these modules for >> PWM/LED in

[PATCH] Documentation: Fix typo within Documentations

2012-11-08 Thread Masanari Iida
Correct spelling typo in Documentations --- Documentation/ABI/testing/dev-kmsg | 2 +- Documentation/ABI/testing/sysfs-devices-power | 2 +- Documentation/ABI/testing/sysfs-driver-ppi | 2 +- Documentation/dma-buf-sharing.txt | 4

Re: [PATCH] gpiolib: iron out include ladder mistakes

2012-11-08 Thread Linus Walleij
On Tue, Nov 6, 2012 at 10:40 PM, Stephen Warren wrote: > On 11/06/2012 09:21 AM, Linus Walleij wrote: >> And we need to keep the static inlines in >> but here for the !CONFIG_GENERIC_GPIO case, and then we >> may as well throw in a few warnings like the other >> prototypes there, if someone

[GIT] HID

2012-11-08 Thread Jiri Kosina
Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid.git for-linus It reverts a patch that causes regression in binding between HID devices and drivers during device unplug/replug cycle. Thanks. Jiri Kosina (1): HID: hidraw: put old deallocation mechanism

Re: PT_EXITKILL (Was: pdeath_signal)

2012-11-08 Thread Pedro Alves
On 11/08/2012 12:44 PM, Oleg Nesterov wrote: > On 11/08, Pedro Alves wrote: >> If this isn't inherited by the ptrace child's children, a fork child can >> end up detached if the tracer dies before it had a chance of setting >> the PTRACE_O_EXITKILL on the new auto-attached child. > > It is

[PATCH v2 00/26] pstore, mmc: add mmc as backend for pstore

2012-11-08 Thread dragos . tatulea
From: Dragos Tatulea These patches enable using the mmc card to store panic information. They include changes for pstore and mmc: - add block device backend for pstore - add logic in mmc for writing in panic mode A mmc host driver must implement mmc_panic_ops. This patchset contains an

[PATCH v2 03/26] pstore: add flush

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter Let the back end know when writing has finished by adding a flush method. Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- fs/pstore/platform.c |3 +++ include/linux/pstore.h |1 + 2 files changed, 4 insertions(+) diff --git a/fs/pstore/platform.c

[PATCH v2 04/26] blkoops: add a block device oops / panic logger

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter blkoops is a pstore back end to write panic / oops logs to a block device. It is initially intended for use with eMMC as an alternative to using a crash kernel. Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- Documentation/blockdev/00-INDEX|2 +

[PATCH v2 11/26] mmc: panic write: bypass clock gating

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/core/core.c |5 + drivers/mmc/core/host.c |9 + 2 files changed, 14 insertions(+) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 204a9bd..f7552af 100644 ---

[PATCH v2 16/26] mmc: sdhci: panic write: no sleeping

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/host/sdhci.c | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 1ed78f0..827e34f 100644 ---

[PATCH v2 17/26] mmc: sdhci: panic write: call tasklets inline

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter When in panic task, we need to schedule other tasklets than normally. Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/host/sdhci.c | 31 +-- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git

[PATCH v2 22/26] mmc: sdhci: panic write: no dma mapping

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter Implement simple dma ops to avoid usage dma mapping in panic mode. Init & cleanup pave the way for the dma ops implemented through pre and post functions. Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/host/sdhci.c | 158

[PATCH v2 23/26] mmc: sdhci: panic write: resume suspended host

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter Resume host when entering panic mode. Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/host/sdhci.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index

[PATCH v2 24/26] mmc: sdhci: panic write: abort request in progress

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/host/sdhci.c |5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 496adc8..9a24417 100644 --- a/drivers/mmc/host/sdhci.c +++

[PATCH v2 26/26] mmc: sdhci-pci: add panic write support

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/host/sdhci-pci.c |5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci.c index 4bb74b0..bee9a45 100644 ---

[PATCH v2 25/26] mmc: sdhci: panic write: trap nonpanic tasks

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/host/sdhci.c | 47 + include/linux/mmc/sdhci.h |1 + 2 files changed, 44 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/sdhci.c

[PATCH v2 21/26] mmc: sdhci: panic write: poll interrupts

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter We really don't want to use interrupts while doing a panic dump, so implement polling. The mmc panic begin/end ops have also been added for sdhci. Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/host/sdhci.c | 33

[PATCH v2 14/26] mmc: panic write: bypass bus ref locking

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter We want to avoid it while panic dumping. Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/core/core.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 4fd7061..3daec19 100644

[PATCH v2 13/26] mmc: panic write: trap non panic tasks

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter If in panic, wait for task to come into context. Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/core/core.c | 10 +- drivers/mmc/core/host.c |2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git

[PATCH v2 19/26] mmc: sdhci: panic write: no runtime pm

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/host/sdhci.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 3653494..fcedcec 100644 --- a/drivers/mmc/host/sdhci.c +++

[PATCH v2 20/26] mmc: sdhci: panic write: no tuning

2012-11-08 Thread dragos . tatulea
From: Adrian Hunter Signed-off-by: Adrian Hunter Signed-off-by: Irina Tirdea --- drivers/mmc/host/sdhci.c |4 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index fcedcec..e096526 100644 --- a/drivers/mmc/host/sdhci.c +++

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