Re: Preemptable Ticket Spinlock

2013-04-22 Thread Gleb Natapov
On Mon, Apr 22, 2013 at 07:08:06PM -0400, Rik van Riel wrote: > On 04/22/2013 04:55 PM, Peter Zijlstra wrote: > >On Mon, 2013-04-22 at 16:46 -0400, Jiannan Ouyang wrote: > > >>- pv-preemptable-lock has much less performance variance compare to > >>pv_lock, because it adapts to preemption within

Re: [RFC] arm64: Early printk support for virtio-mmio console devices.

2013-04-22 Thread Pranavkumar Sawargaonkar
On 22 April 2013 10:45, Rusty Russell wrote: > Anup Patel writes: >> On 22 April 2013 06:51, Rusty Russell wrote: >>> >>> Pranavkumar Sawargaonkar writes: >>> > On 18 April 2013 12:21, Rusty Russell wrote: >>> >> >>> >> PranavkumarSawargaonkar writes: >>> >> > From: Pranavkumar Sawargaonkar

[PATCH V4 0/5] powerpc, perf: BHRB based branch stack enablement on POWER8

2013-04-22 Thread Anshuman Khandual
Branch History Rolling Buffer (BHRB) is a new PMU feaure in IBM POWER8 processor which records the branch instructions inside the execution pipeline. This patchset enables the basic functionality of the feature through generic perf branch stack sampling framework. Sample output

[PATCH V4 1/5] powerpc, perf: Add new BHRB related instructions for POWER8

2013-04-22 Thread Anshuman Khandual
This patch adds new POWER8 instruction encoding for reading and clearing Branch History Rolling Buffer entries. The new instruction 'mfbhrbe' (move from branch history rolling buffer entry) is used to read BHRB buffer entries and instruction 'clrbhrb' (clear branch history rolling buffer) is used

[PATCH V4 2/5] powerpc, perf: Add basic assembly code to read BHRB entries on POWER8

2013-04-22 Thread Anshuman Khandual
This patch adds the basic assembly code to read BHRB buffer. BHRB entries are valid only after a PMU interrupt has happened (when MMCR0[PMAO]=1) and BHRB has been freezed. BHRB read should not be attempted when it is still enabled (MMCR0[PMAE]=1) and getting updated, as this can produce

[PATCH V4 5/5] powerpc, perf: Enable branch stack sampling framework

2013-04-22 Thread Anshuman Khandual
Provides basic enablement for perf branch stack sampling framework on POWER8 processor based platforms. Adds new BHRB related elements into cpu_hw_event structure to represent current BHRB config, BHRB filter configuration, manage context and to hold output BHRB buffer during PMU interrupt before

[PATCH V4 4/5] powerpc, perf: Define BHRB generic functions, data and flags for POWER8

2013-04-22 Thread Anshuman Khandual
This patch populates BHRB specific data for power_pmu structure. It also implements POWER8 specific BHRB filter and configuration functions. Signed-off-by: Anshuman Khandual --- arch/powerpc/perf/power8-pmu.c | 57 +- 1 file changed, 56 insertions(+), 1

[PATCH V4 3/5] powerpc, perf: Add new BHRB related generic functions, data and flags

2013-04-22 Thread Anshuman Khandual
This patch adds couple of generic functions to power_pmu structure which would configure the BHRB and it's filters. It also adds representation of the number of BHRB entries present on the PMU. A new PMU flag PPMU_BHRB would indicate presence of BHRB feature. Signed-off-by: Anshuman Khandual ---

Re: [PATCH v5] fat: editions to support fat_fallocate

2013-04-22 Thread Namjae Jeon
2013/4/23, Andrew Morton : > On Thu, 18 Apr 2013 22:54:15 +0900 Namjae Jeon > wrote: > >> Change Log: >> v5: change to avoid compilation warning: >> fs/fat/inode.c: In function 'fat_zero_falloc_area': >> >> fs/fat/inode.c:169:11: warning: comparison of distinct pointer >> types lacks a cast

Re: [RFC/PATCHv2 5/5] arm: omap2+: omap_device: remove no_idle_on_suspend

2013-04-22 Thread Sourav Poddar
Hi Kevin, On Tuesday 23 April 2013 12:11 AM, Kevin Hilman wrote: Grygorii Strashko writes: On 04/22/2013 04:43 PM, Sourav Poddar wrote: Remove the "OMAP_DEVICE_NO_IDLE_ON_SUSPEND" check, since driver should be able to prevent idling of an omap device whenever required. Cc: Santosh Shilimkar

Re: [PATCHv2 2/5] driver: serial: omap: prevent runtime PM for "no_console_suspend"

2013-04-22 Thread Sourav Poddar
Hi Grygorii, On Monday 22 April 2013 08:18 PM, Grygorii Strashko wrote: On 04/22/2013 04:43 PM, Sourav Poddar wrote: The driver manages "no_console_suspend" by preventing runtime PM during the suspend path, which forces the console UART to stay awake. Signed-off-by: Sourav Poddar ---

Re: [PATCH v2 0/9] fix max discard sectors limit

2013-04-22 Thread Namjae Jeon
2013/4/23, Kent Overstreet : > On Sat, Apr 20, 2013 at 01:40:02AM +0900, Namjae Jeon wrote: >> From: Namjae Jeon >> >> linux-v3.8-rc1 and later support for plug for blkdev_issue_discard with >> commit 0cfbcafcae8b7364b5fa96c2b26ccde7a3a296a9 >> (block: add plug for blkdev_issue_discard ) >> >>

Re: [PATCHv2 2/5] driver: serial: omap: prevent runtime PM for "no_console_suspend"

2013-04-22 Thread Sourav Poddar
Hi Kevin, On Tuesday 23 April 2013 12:06 AM, Kevin Hilman wrote: Grygorii Strashko writes: On 04/22/2013 04:43 PM, Sourav Poddar wrote: The driver manages "no_console_suspend" by preventing runtime PM during the suspend path, which forces the console UART to stay awake. Signed-off-by:

RE: [NEW DRIVER V6 1/7] drivers/mfd: DA9058 MFD core driver

2013-04-22 Thread Opensource [Anthony Olech]
> -Original Message- > From: Mark Brown [mailto:broo...@kernel.org] > Sent: 22 April 2013 14:34 > To: Opensource [Anthony Olech] > Cc: Samuel Ortiz; Arnd Bergmann; Mauro Carvalho Chehab; Steven Toth; > Michael Krufky; LKML; David Dajun Chen > Subject: Re: [NEW DRIVER V6 1/7] drivers/mfd:

Re: [PATCH] slab: Remove unnecessary __builtin_constant_p()

2013-04-22 Thread Behan Webster
On 13-04-22 03:58 PM, Steven Rostedt wrote: On Mon, 2013-04-22 at 13:44 -0700, Andrew Morton wrote: On Wed, 17 Apr 2013 17:03:21 -0700 (PDT) David Rientjes wrote: On Wed, 17 Apr 2013, Steven Rostedt wrote: The slab.c code has a size check macro that checks the size of the following

Re: Preemptable Ticket Spinlock

2013-04-22 Thread Raghavendra K T
On 04/23/2013 02:31 AM, Peter Zijlstra wrote: On Mon, 2013-04-22 at 16:49 -0400, Rik van Riel wrote: Given the fairly high cost of rescheduling a VCPU (which is likely to include an IPI), versus the short hold time of most spinlocks, I have the strong suspicion that your approach would win.

Re: [RFC PATCH v3 5/6] sched: pack the idle load balance

2013-04-22 Thread Preeti U Murthy
Hi Alex, I have one point below. On 04/23/2013 07:53 AM, Alex Shi wrote: > Thanks you, Preeti and Vincent to talk the power aware scheduler for > details! believe this open discussion is helpful to conduct a a more > comprehensive solution. :) > >> Hi Preeti, >> >> I have had a look at Alex

Re: [PATCHv2 4/5] arm: dts: am33xx: Remove "ti,no_idle_on_suspend" property.

2013-04-22 Thread Sourav Poddar
Hi Felipe, On Monday 22 April 2013 08:05 PM, Felipe Balbi wrote: Hi, On Mon, Apr 22, 2013 at 07:13:56PM +0530, Sourav Poddar wrote: The "ti,no_idle_on_suspend" property was required to keep ocmcram clocks running during idle. But the commit below[1], added in v3.6 should prevent the any

Re: [PATCHv2 2/5] driver: serial: omap: prevent runtime PM for "no_console_suspend"

2013-04-22 Thread Sourav Poddar
Hi Felipe, On Monday 22 April 2013 08:01 PM, Felipe Balbi wrote: Hi, On Mon, Apr 22, 2013 at 07:13:54PM +0530, Sourav Poddar wrote: The driver manages "no_console_suspend" by preventing runtime PM during the suspend path, which forces the console UART to stay awake. Signed-off-by: Sourav

Re: [PATCHv3 00/14] drivers: mailbox: framework creation

2013-04-22 Thread Jassi Brar
Hi Suman, On Mon, Apr 22, 2013 at 9:26 PM, Anna, Suman wrote: >> >> a) No documentation. Usually the header would have proper documentation of >> data structures and info for users of both side of the api. > > I will fix the documentation portion for 3.10. I will also add a TODO as part > of

RE: [PATCH 2/3 v13] iommu/fsl: Add additional iommu attributes required by the PAMU driver.

2013-04-22 Thread Sethi Varun-B16395
> -Original Message- > From: Wood Scott-B07421 > Sent: Tuesday, April 23, 2013 5:20 AM > To: Sethi Varun-B16395 > Cc: j...@8bytes.org; io...@lists.linux-foundation.org; linuxppc- > d...@lists.ozlabs.org; linux-kernel@vger.kernel.org; > ga...@kernel.crashing.org; b...@kernel.crashing.org;

[PATCH 1/3 v2] iommu: Move swap_pci_ref function to pci.h.

2013-04-22 Thread Varun Sethi
swap_pci_ref function is used by the IOMMU API code for swapping pci device pointers, while determining the iommu group for the device. Currently this function was being implemented for different IOMMU drivers. This patch moves the function to a new file, drivers/iommu/pci.h so that the

[PATCH 2/3 v14] iommu/fsl: Add additional iommu attributes required by the PAMU driver.

2013-04-22 Thread Varun Sethi
Added the following domain attributes for the FSL PAMU driver: 1. Added new iommu stash attribute, which allows setting of the LIODN specific stash id parameter through IOMMU API. 2. Added an attribute for enabling/disabling DMA to a particular memory window. 3. Added domain attribute to

Re: [PATCH] drivers: uio: Fix UIO device registration failure

2013-04-22 Thread Sachin Kamat
On 26 March 2013 07:17, Greg KH wrote: > On Tue, Mar 26, 2013 at 10:31:22AM +0900, Damian Hobson-Garcia wrote: >> Until recently uio_get_minor() returned 0 for success and >> a negative value on failure. This became non-negative for suceess and >> negative for failure. Restore the original

[char-misc-next] mei: reduce flow control only for completed messages

2013-04-22 Thread Tomas Winkler
This fixes bug when only first chunk of a large message split by hbuf_max_len is written to the hardware. All the consequent chunks will not get a new credit. A regression introduced by the commit 0ef319c93cebff9f82bdd0cdbb298f2dd00acda8 mei: streamline write complete flow function

Re: [RFC PATCH v3 5/6] sched: pack the idle load balance

2013-04-22 Thread Preeti U Murthy
Hi Vincent, Thank you very much for bringing about the differences between your goals and the working of the power aware scheduler patchset.This was essential for us to understand the various requirements from a power aware scheduler.After you post out the patchset we could try and evaluate the

[PATCH] regulator: tps62360: Fix off-by-one shift for ramp_ctrl

2013-04-22 Thread Axel Lin
According to the datasheet[1] Register 0x06h Description: RmpCtrl (REGISTER ADDRESS: 0x06h Read/Write) BIT[5..7]: RMP[2:0] Output voltage ramp timing D7-D5 Slope 000 32mV/us 001 16mV/us 010 8mV/us ... 110 0.5mV/us

Linux 3.9 release time frame

2013-04-22 Thread Chris Jones
What is the time frame we are currently looking at for a release of kernel 3.9? Regards -- Chris Jones Founder and Lead Developer Nest Linux nestli...@outlook.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org

RE: [PATCH 3.8-stable] ARM: S3C24XX: Correct NR_IRQS definition for s3c2440

2013-04-22 Thread Jonghwan Choi
Oh my god~. Maybe I was insane When I send emails, I usually photocopy this part and use it, but I accidently made a mistake. I am so so sorry. Best Regards. Thanks. > -Original Message- > From: stable-ow...@vger.kernel.org [mailto:stable-ow...@vger.kernel.org] > On Behalf Of Greg KH >

RE: [PATCH -next] mei: fix krealloc() misuse in in mei_cl_irq_read_msg()

2013-04-22 Thread Winkler, Tomas
> From: Wei Yongjun > > If krealloc() returns NULL, it doesn't free the original. So any code of the > form > 'foo = krealloc(foo, ...);' is almost certainly a bug. > > Introduced by commit fcb136e1ac5774909e0d85189f721b8dfa800e0f(mei: fix > reading large reposnes) > > Signed-off-by: Wei

Re: OOM-killer and strange RSS value in 3.9-rc7

2013-04-22 Thread Han Pingtian
On Mon, Apr 22, 2013 at 01:40:52PM +0200, Michal Hocko wrote: > > CONFIG_PPC_BOOK3S_64=y > > # CONFIG_PPC_BOOK3E_64 is not set > > -CONFIG_GENERIC_CPU=y > > +# CONFIG_GENERIC_CPU is not set > > # CONFIG_CELL_CPU is not set > > # CONFIG_POWER4_CPU is not set > > # CONFIG_POWER5_CPU is not set

Re: [PATCH v3 1/6] at_hdmac: move to generic DMA binding

2013-04-22 Thread Vinod Koul
On Mon, Apr 22, 2013 at 12:22:32PM +0200, Nicolas Ferre wrote: > On 04/19/2013 11:11 AM, ludovic.desroc...@atmel.com : > > From: Ludovic Desroches > > +#ifdef CONFIG_OF > > +static bool at_dma_filter(struct dma_chan *chan, void *slave) this is not defined for else case here. Also this could be

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

2013-04-22 Thread Dmitry Torokhov
On Mon, Apr 22, 2013 at 08:39:15PM +0800, Chun-Yi Lee wrote: > From: "Lee, Chun-Yi" > +static acpi_status > +find_video_unregister_backlight(acpi_handle handle, u32 lvl, void *context, > + void **rv) > +{ > + struct acpi_device *acpi_dev; > + struct

Re: [PATCH] sched: wake-affine throttle

2013-04-22 Thread Michael Wang
On 04/22/2013 06:35 PM, Ingo Molnar wrote: > > * Peter Zijlstra wrote: > >> OK,.. Ingo said that pipe-test was the original motivation for >> wake_affine() and since that's currently broken to pieces due to >> select_idle_sibling() is there still a benefit to having it at all? >> >> Can

Re: [PATCH 2/2] acer-wmi: add Acer Aspire 5750G to video vendor list but keep acpi video driver

2013-04-22 Thread Dmitry Torokhov
On Mon, Apr 22, 2013 at 08:39:14PM +0800, Chun-Yi Lee wrote: > From: Lee, Chun-Yi > > After Andrzej's testing, we found the acpi backlight methods broken on Acer > Aspire 5750G but the i915 backlight control works when we set to vendor mode. > And, we still want to keep the acpi/video driver for

Re: [PATCH documentation 2/2] kthread: Document ways of reducing OS jitter due to per-CPU kthreads

2013-04-22 Thread Paul E. McKenney
On Sun, Apr 21, 2013 at 09:37:05PM +0200, Borislav Petkov wrote: > On Tue, Apr 16, 2013 at 09:41:30AM -0700, Paul E. McKenney wrote: > > From: "Paul E. McKenney" > > > > The Linux kernel uses a number of per-CPU kthreads, any of which might > > contribute to OS jitter at any time. The usual

Re: [PATCH] sched: wake-affine throttle

2013-04-22 Thread Michael Wang
On 04/22/2013 06:23 PM, Peter Zijlstra wrote: > > OK,.. Ingo said that pipe-test was the original motivation for > wake_affine() and since that's currently broken to pieces due to > select_idle_sibling() is there still a benefit to having it at all? > > Can anybody find any significant

[PATCH] regulator: tps65023: Use [set|get]_voltage_sel_regmap instead of open coded

2013-04-22 Thread Axel Lin
Simply the [get|set]_voltage_sel implementation by using regulator_[set|get]_voltage_sel_regmap instead of open coded. Signed-off-by: Axel Lin --- drivers/regulator/tps65023-regulator.c | 31 +-- 1 file changed, 9 insertions(+), 22 deletions(-) diff --git

Re: [PATCH v2] kernel: audit_tree: resource management: need put_tree and goto Err when failure occures

2013-04-22 Thread Chen Gang
On 2013年04月20日 15:31, Chen Gang wrote: > On 2013年04月18日 09:19, Chen Gang F T wrote: >> > On 2013年04月18日 04:07, Andrew Morton wrote: >> > On Wed, 17 Apr 2013 12:04:02 +0800 Chen Gang >> > wrote: >> > >> > since "normally audit_add_tree_rule() will free it on

Re: [RFC/PATCH 1/4] arm64: Provide default implementation for dma_{alloc, free}_attrs

2013-04-22 Thread Damian Hobson-Garcia
Hi Lars, On 2013/04/22 15:11, Lars-Peter Clausen wrote: > On 04/22/2013 07:09 AM, Damian Hobson-Garcia wrote: >> Most architectures that define CONFIG_HAVE_DMA, have implementations for >> both dma_alloc_attrs() and dma_free_attrs(). All achitectures that do >> not define CONFIG_HAVE_DMA also

Re: memcpy_fromio in dmi_scan.c

2013-04-22 Thread DuanZhenzhong
Jean Delvare wrote: Hi Duan, Andrew, I am looking at the following commit: commit 9f9c9cbb60576a1518d0bf93fb8e499cffccf377 Author: Zhenzhong Duan Date: Thu Dec 20 15:05:14 2012 -0800 drivers/firmware/dmi_scan.c: fetch dmi version from SMBIOS if it exists And I am worried about calls

[PATCH] PowerPC: kernel: memory access violation when rtas_data_buf contents are more than 1026

2013-04-22 Thread Chen Gang
need set '\0' for 'local_buffer'. SPLPAR_MAXLENGTH is 1026, RTAS_DATA_BUF_SIZE is 4096. so the contents of rtas_data_buf may truncated in memcpy. if contents are really truncated. the splpar_strlen is more than 1026. the next while loop checking will not find the end of buffer. that will

Re: [PATCH 3.8-stable] ARM: S3C24XX: Correct NR_IRQS definition for s3c2440

2013-04-22 Thread Greg KH
On Tue, Apr 23, 2013 at 11:59:13AM +0900, Jonghwan Choi wrote: > 3.8-stable review patch. If anyone has any objections, please let me know. Why, what are you going to do with this? :) I thought you were going to change the wording of your emails, what happened? greg k-h -- To unsubscribe from

[PATCH 3.8-stable] ARM: S3C24XX: Correct NR_IRQS definition for s3c2440

2013-04-22 Thread Jonghwan Choi
3.8-stable review patch. If anyone has any objections, please let me know. -- From: "Sylwester Nawrocki " commit b530f742ac27460d41d35b638ad6aad92044a982 upstream. Due to NR_IRQS being incorrectly defined not all IRQ domains can be registered for S3C2440. It causes following

[PATCH 3.8-stable] perf: Fix error return code

2013-04-22 Thread Jonghwan Choi
3.8-stable review patch. If anyone has any objections, please let me know. -- From: "Wei Yongjun " commit c481420248c6730246d2a1b1773d5d7007ae0835 upstream. Fix to return -ENOMEM in the allocation error case instead of 0 (if pmu_bus_running == 1), as done elsewhere in this

[PATCH 3.8-stable] regulator: fixed regulator_bulk_enable unwinding code

2013-04-22 Thread Jonghwan Choi
3.8-stable review patch. If anyone has any objections, please let me know. -- From: "Andrzej Hajda " commit fbe31057fafebdc2811a7101b8b4a0460f5417d1 upstream. Unwinding code disables all successfully enabled regulators. Error is logged for every failed regulator.

Re: [next:akpm 798/1000] drivers/rtc/rtc-ds1286.c:343:24: sparse: incorrect type in argument 1 (different address spaces)

2013-04-22 Thread Christopher Li
On Mon, Apr 22, 2013 at 4:56 PM, Andrew Morton wrote: > I think doing IS_ERR() and PTR_ERR() on __iomem pointers is a natural > thing, and we should be able to do this without adding call-site > trickery to make sparse happy. > > Is there some sort of annotation which we can add to the >

Re: [PATCH] clk: exynos5250: Fix divider values for sclk_mmc{0,1,2,3}

2013-04-22 Thread Tushar Behera
On 04/22/2013 11:10 PM, Olof Johansson wrote: > Hi, > > On Tue, Apr 16, 2013 at 12:35 PM, Doug Anderson wrote: >> Hi, >> >> On Mon, Apr 8, 2013 at 12:22 AM, Kukjin Kim wrote: >>> Mike Turquette wrote: Quoting Tushar Behera (2013-04-02 01:20:40) > In legacy setup, sclk_mmc{0,1,2,3}

Re: [next:akpm 798/1000] drivers/rtc/rtc-ds1286.c:343:24: sparse: incorrect type in argument 1 (different address spaces)

2013-04-22 Thread Fengguang Wu
On Mon, Apr 22, 2013 at 04:56:29PM -0700, Andrew Morton wrote: > On Sat, 20 Apr 2013 07:54:34 +0800 kbuild test robot > wrote: > > > tree: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > > akpm > > head: c9941b7ec7840ad33f5822c7f238157558d40132 > > commit:

Re: [PATCH v2 2/8] mtd: add a helper to get the supported features for ONFI nand

2013-04-22 Thread Huang Shijie
于 2013年04月23日 05:04, Brian Norris 写道: return chip->onfi_version ? le16_to_cpu(chip->onfi_params.features) : 0; it's ok to me. I will use 0 as the unknow feature in the next version. thanks Huang Shijie -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

[PATCH -next] iommu/amd: fix error return code in early_amd_iommu_init()

2013-04-22 Thread Wei Yongjun
From: Wei Yongjun Fix to return -ENOMEM int the memory alloc error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun --- drivers/iommu/amd_iommu_init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iommu/amd_iommu_init.c

[PATCH -next] mei: fix krealloc() misuse in in mei_cl_irq_read_msg()

2013-04-22 Thread Wei Yongjun
From: Wei Yongjun If krealloc() returns NULL, it doesn't free the original. So any code of the form 'foo = krealloc(foo, ...);' is almost certainly a bug. Introduced by commit fcb136e1ac5774909e0d85189f721b8dfa800e0f(mei: fix reading large reposnes) Signed-off-by: Wei Yongjun ---

Re: [PATCH v2 3/8] mtd: get the ECC info from the Extended Parameter Page

2013-04-22 Thread Huang Shijie
于 2013年04月23日 05:22, Brian Norris 写道: On Mon, Apr 22, 2013 at 12:47 AM, Huang Shijie wrote: Since the ONFI 2.1, the onfi spec adds the Extended Parameter Page to store the ECC info. The onfi spec tells us that if the nand chip's recommended ECC codeword size is not 512 bytes, then the

Re: [RFC PATCH v3 5/6] sched: pack the idle load balance

2013-04-22 Thread Alex Shi
Thanks you, Preeti and Vincent to talk the power aware scheduler for details! believe this open discussion is helpful to conduct a a more comprehensive solution. :) > Hi Preeti, > > I have had a look at Alex patches but i have some concerns with his patches > -There no notion of power domain

Re: [PATCH v3 00/15] KVM: MMU: fast zap all shadow pages

2013-04-22 Thread Marcelo Tosatti
On Mon, Apr 22, 2013 at 10:45:53PM +0900, Takuya Yoshikawa wrote: > On Mon, 22 Apr 2013 15:39:38 +0300 > Gleb Natapov wrote: > > > > > Do not want kvm_set_memory (cases: DELETE/MOVE/CREATES) to be > > > > suspectible to: > > > > > > > > vcpu 1 | kvm_set_memory > > > >

Re: [PATCH 6/6] add documentation on proc.txt

2013-04-22 Thread Minchan Kim
Hello Dave, On Mon, Apr 22, 2013 at 09:17:10AM -0700, Dave Hansen wrote: > On 04/22/2013 01:45 AM, Minchan Kim wrote: > > +The /proc/PID/reclaim is used to reclaim pages in this process. > > +To reclaim file-backed pages, > > +> echo 1 > /proc/PID/reclaim > > + > > +To reclaim anonymous

Re: Preemptable Ticket Spinlock

2013-04-22 Thread Raghavendra K T
On 04/22/2013 10:12 PM, Jiannan Ouyang wrote: On Mon, Apr 22, 2013 at 1:58 AM, Raghavendra K T wrote: [...] static __always_inline void __ticket_spin_lock(arch_spinlock_t *lock) { register struct __raw_tickets inc = { .tail = 1 }; + unsigned int timeout = 0; +

Re: [Suggestion] PowerPC: kernel: memory access violation when rtas_data_buf contents are more than 1026

2013-04-22 Thread Chen Gang
On 2013年04月23日 08:31, Benjamin Herrenschmidt wrote: > On Thu, 2013-04-18 at 12:45 +0800, Chen Gang wrote: >> Hello Maintainers: >> >> >> in arch/powerpc/kernel/lparcfg.c, parse_system_parameter_string() >> >> need set '\0' for 'local_buffer'. >> >> the reason is: >> SPLPAR_MAXLENGTH is

Re: [PATCH] kernel/audit_tree.c: tree will memory leak when failure occurs for audit_trim_trees()

2013-04-22 Thread Chen Gang
On 2013年04月23日 07:04, Andrew Morton wrote: > On Fri, 19 Apr 2013 17:39:06 +0800 Chen Gang wrote: > >> >> in audit_trim_trees(), has called get_tree() before failure occurs, >> so need also call put_tree after go to skip_it: >> >> ... >> >> --- a/kernel/audit_tree.c >> +++ b/kernel/audit_tree.c

Re: Preemptable Ticket Spinlock

2013-04-22 Thread Raghavendra K T
On 04/23/2013 01:19 AM, Peter Zijlstra wrote: On Mon, 2013-04-22 at 08:52 -0400, Rik van Riel wrote: On 04/22/2013 07:51 AM, Peter Zijlstra wrote: On Sun, 2013-04-21 at 17:12 -0400, Rik van Riel wrote: If we always incremented the ticket number by 2 (instead of 1), then we could use the

[Bug fix PATCH v5] Reusing a resource structure allocated by bootmem

2013-04-22 Thread Yasuaki Ishimatsu
When hot removing memory presented at boot time, following messages are shown: [ 296.867031] [ cut here ] [ 296.922273] kernel BUG at mm/slub.c:3409! [ 296.970229] invalid opcode: [#1] SMP [ 297.019453] Modules linked in: ebtable_nat ebtables xt_CHECKSUM

[PATCH -tip] ftrace: Fix outputting formats of x86-tsc and counter when use trace_clock

2013-04-22 Thread Yoshihiro YUNOMAE
Outputting formats of x86-tsc and counter should be a raw format, but after applying the patch(2b6080f28c7cc3efc8625ab71495aae89aeb63a0), the format was changed to nanosec. This is because the global variable trace_clock_id was used. When we use multiple buffers, clock_id of each sub-buffer should

[PATCH v2] mm: add an option to disable bounce

2013-04-22 Thread vinayakm . list
From: Vinayak Menon There are times when HIGHMEM is enabled, but we don't prefer CONFIG_BOUNCE to be enabled. CONFIG_BOUNCE can reduce the block device throughput, and this is not ideal for machines where we don't gain much by enabling it. So provide an option to deselect CONFIG_BOUNCE. The

Re: Re: [PATCH V2 1/3] trace-cmd: Define general functions for outputting/inputting saved_cmdlines

2013-04-22 Thread Yoshihiro YUNOMAE
Hi Steven, (2013/04/23 5:06), Steven Rostedt wrote: On Mon, 2013-04-22 at 18:43 +0900, Yoshihiro YUNOMAE wrote: Currently, trace-cmd outputs data of saved_cmdlines to a trace.dat file in create_file_fd() and inputs the data from the file in tracecmd_init_data(). On the other hand, trace-cmd

Re: [PATCH 6/6] add documentation on proc.txt

2013-04-22 Thread Minchan Kim
Hello Rob, On Mon, Apr 22, 2013 at 10:48:39AM -0500, Rob Landley wrote: > On 04/22/2013 03:45:06 AM, Minchan Kim wrote: > >This patch adds documentation about new reclaim field in proc.txt > > > >Cc: Rob Landley > >Signed-off-by: Minchan Kim > >--- > > Documentation/filesystems/proc.txt | 24

Re: [Bug fix PATCH v2] numa, cpu hotplug: Change links of CPU and node when changing node number by onlining CPU

2013-04-22 Thread Yasuaki Ishimatsu
2013/04/23 9:34, Andrew Morton wrote: On Tue, 23 Apr 2013 09:04:46 +0900 Yasuaki Ishimatsu wrote: 2013/04/23 7:35, Andrew Morton wrote: On Fri, 19 Apr 2013 14:23:23 +0900 Yasuaki Ishimatsu wrote: When booting x86 system contains memoryless node, node numbers of CPUs on memoryless node

RE: [PATCH v2] NMI: fix NMI period is not correct when cpu frequency changes issue.

2013-04-22 Thread Pan, Zhenjie
> -Original Message- > From: Don Zickus [mailto:dzic...@redhat.com] > Sent: Tuesday, April 23, 2013 2:59 AM > To: Pan, Zhenjie > Cc: Stephane Eranian; Peter Zijlstra; pau...@samba.org; mi...@redhat.com; > a...@ghostprotocols.net; a...@linux-foundation.org; t...@linutronix.de; > Liu,

Re: [PATCH] powerpc: Add HWCAP2 aux entry

2013-04-22 Thread Benjamin Herrenschmidt
On Thu, 2013-04-18 at 13:41 +1000, Michael Neuling wrote: > akpm, > > If you're happy with this, is it something you can take in your tree? Andrew ? Or give me an ack ? :-) I'm happy to carry this, we need that rather urgently and we have the glibc folks on board. Cheers, Ben. > Mikey > >

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

2013-04-22 Thread David Miller
From: Stephen Rothwell Date: Mon, 22 Apr 2013 13:09:39 +1000 > Today's linux-next merge of the net-next tree got a conflict in > include/net/scm.h between commit 83f1b4ba917d ("net: fix incorrect > credentials passing") from Linus' tree and commit 6b0ee8c036ec ("scm: > Stop passing struct cred")

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

2013-04-22 Thread David Miller
From: Stephen Rothwell Date: Mon, 22 Apr 2013 13:03:24 +1000 > Today's linux-next merge of the net-next tree got a conflict in > net/ipv4/tcp_input.c between commit 12fb3dd9dc3c ("tcp: call > tcp_replace_ts_recent() from tcp_ack()") from Linus' tree and commit > 9b717a8d2450 ("tcp: TLP loss

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

2013-04-22 Thread David Miller
From: Stephen Rothwell Date: Mon, 22 Apr 2013 12:43:34 +1000 > Today's linux-next merge of the net-next tree got a conflict in > drivers/net/ethernet/emulex/benet/be_main.c between commit f11a869d4e38 > ("be2net: take care of __vlan_put_tag return value") from Linus' tree and > commit

Re: linux-next: build failure after merge of the net-next tree

2013-04-22 Thread David Miller
From: Stephen Rothwell Date: Fri, 19 Apr 2013 13:21:27 +1000 > After merging the net-next tree, today's linux-next build (x86_64 > allmodconfig) failed like this: I also made sure this got fixed in the merge commit. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

Re: linux-next: manual merge of the net-next tree with the net tree

2013-04-22 Thread David Miller
From: Stephen Rothwell Date: Fri, 19 Apr 2013 12:53:04 +1000 > Today's linux-next merge of the net-next tree got a conflict in > net/batman-adv/routing.c between commit fe8a93b95145 ("batman-adv: make > is_my_mac() check for the current mesh only") from the net tree and > commits f86ce0ad107b

Re: socket file descriptor a/m/c-timestamps broken in <= 3.8.8?

2013-04-22 Thread Eric Dumazet
On Tue, 2013-04-23 at 00:30 +, Eric Wong wrote: > Cc:-ing netdev (no comments of my own) > > Felix Becker wrote: > > Hi, > > > > I tried to figure out how old my TCP connections are and took a look > > at /proc//fd/ using 'ls -la' / 'stat'. > > Thanks, but its not a network issue,

Re: [Bug fix PATCH v2] numa, cpu hotplug: Change links of CPU and node when changing node number by onlining CPU

2013-04-22 Thread Andrew Morton
On Tue, 23 Apr 2013 09:04:46 +0900 Yasuaki Ishimatsu wrote: > 2013/04/23 7:35, Andrew Morton wrote: > > On Fri, 19 Apr 2013 14:23:23 +0900 Yasuaki Ishimatsu > > wrote: > > > >> When booting x86 system contains memoryless node, node numbers of CPUs > >> on memoryless node were changed to

Re: Unsigned widening casts of binary "not" operations..

2013-04-22 Thread H. Peter Anvin
On 04/22/2013 05:15 PM, Linus Torvalds wrote: > > (It turns out that any use of "UINT_MAX" for a "long" value also results in > this warning, because we define it as "~0ul", so there are other cases of > spurious things where we *intentionally* drop the high bits). > I'm responsible for this

Re: [Suggestion] PowerPC: kernel: memory access violation when rtas_data_buf contents are more than 1026

2013-04-22 Thread Benjamin Herrenschmidt
On Thu, 2013-04-18 at 12:45 +0800, Chen Gang wrote: > Hello Maintainers: > > > in arch/powerpc/kernel/lparcfg.c, parse_system_parameter_string() > > need set '\0' for 'local_buffer'. > > the reason is: > SPLPAR_MAXLENGTH is 1026, RTAS_DATA_BUF_SIZE is 4096 > the contents of

Re: socket file descriptor a/m/c-timestamps broken in <= 3.8.8?

2013-04-22 Thread Eric Wong
Cc:-ing netdev (no comments of my own) Felix Becker wrote: > Hi, > > I tried to figure out how old my TCP connections are and took a look > at /proc//fd/ using 'ls -la' / 'stat'. > > When I'm creating a new socket in my application, the time stamps > returned by stat / ls -la are correct - as

Re: Unsigned widening casts of binary "not" operations..

2013-04-22 Thread Linus Torvalds
[ Ugh, resending because I had mistakenly set the html bit and all the mailing lists just refused the original... ] So I was playing with sparse again, because the MIPS people had hit a bug with the fact that they had made PAGE_MASK an *unsigned* type, and then doing the ~ (binary not) operation

Re: [PATCH v3 00/15] KVM: MMU: fast zap all shadow pages

2013-04-22 Thread Xiao Guangrong
On 04/22/2013 05:21 PM, Gleb Natapov wrote: > On Sun, Apr 21, 2013 at 10:09:29PM +0800, Xiao Guangrong wrote: >> On 04/21/2013 09:03 PM, Gleb Natapov wrote: >>> On Tue, Apr 16, 2013 at 02:32:38PM +0800, Xiao Guangrong wrote: This patchset is based on my previous two patchset: [PATCH 0/2]

Re: [Bug fix PATCH v4] Reusing a resource structure allocated by bootmem

2013-04-22 Thread Yasuaki Ishimatsu
2013/04/19 23:30, Toshi Kani wrote: On Fri, 2013-04-19 at 17:09 +0900, Yasuaki Ishimatsu wrote: Hi Toshi, 2013/04/19 8:33, Yasuaki Ishimatsu wrote: Hi Toshi, 2013/04/18 23:23, Toshi Kani wrote: On Thu, 2013-04-18 at 17:36 +0900, Yasuaki Ishimatsu wrote: When hot removing memory presented

Re: [PATCH] Watchdog: add pretimeout

2013-04-22 Thread Jörn Engel
On Mon, 22 April 2013 16:26:13 -0700, Guenter Roeck wrote: > On Mon, Apr 22, 2013 at 05:38:39PM -0400, Jörn Engel wrote: > > On Mon, 22 April 2013 15:42:03 -0700, Guenter Roeck wrote: > > > > The counter-argument is that applications have to opt-in by setting a > > pretimeout. Although I have to

Re: [Bug fix PATCH v2] numa, cpu hotplug: Change links of CPU and node when changing node number by onlining CPU

2013-04-22 Thread Yasuaki Ishimatsu
2013/04/23 7:35, Andrew Morton wrote: On Fri, 19 Apr 2013 14:23:23 +0900 Yasuaki Ishimatsu wrote: When booting x86 system contains memoryless node, node numbers of CPUs on memoryless node were changed to nearest online node number by init_cpu_to_node() because the node is not online. ...

Re: Excessive stall times on ext4 in 3.9-rc2

2013-04-22 Thread Theodore Ts'o
On Mon, Apr 22, 2013 at 06:42:23PM -0400, Jeff Moyer wrote: > > Jan, if I were to come up with a way of promoting a particular async > queue to the front of the line, where would I put such a call in the > ext4/jbd2 code to be effective? Well, I thought we had discussed trying to bump a pending

Re: [next:akpm 798/1000] drivers/rtc/rtc-ds1286.c:343:24: sparse: incorrect type in argument 1 (different address spaces)

2013-04-22 Thread Andrew Morton
On Sat, 20 Apr 2013 07:54:34 +0800 kbuild test robot wrote: > tree: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git akpm > head: c9941b7ec7840ad33f5822c7f238157558d40132 > commit: d5e42b5769899607e1e4b0c9200340d24f370e8c [798/1000] rtc: rtc-ds1286: > use devm_*()

Re: [PATCH 2/3 v13] iommu/fsl: Add additional iommu attributes required by the PAMU driver.

2013-04-22 Thread Scott Wood
On 04/22/2013 12:31:55 AM, Varun Sethi wrote: Added the following domain attributes for the FSL PAMU driver: 1. Added new iommu stash attribute, which allows setting of the LIODN specific stash id parameter through IOMMU API. 2. Added an attribute for enabling/disabling DMA to a particular

socket file descriptor a/m/c-timestamps broken in <= 3.8.8?

2013-04-22 Thread Felix Becker
Hi, I tried to figure out how old my TCP connections are and took a look at /proc//fd/ using 'ls -la' / 'stat'. When I'm creating a new socket in my application, the time stamps returned by stat / ls -la are correct - as expected. After closing the socket, the fd isn't visible in /proc//fd

Re: [PATCH 3/3] rtc: rtc-hid-sensor-time; add option hctosys to set time at boot

2013-04-22 Thread Andrew Morton
On Fri, 19 Apr 2013 17:14:12 +0200 Alexander Holler wrote: > drivers/rtc/hctosys (CONFIG_RTC_HCTOSYS) doesn't work for > rtc-hid-sensor-time because it will be called in late_init, and thus before > rtc-hid-sensor-time gets loaded. Isn't that true of all RTC drivers which are built as modules?

Re: [PATCH] Watchdog: add pretimeout

2013-04-22 Thread Guenter Roeck
On Mon, Apr 22, 2013 at 05:38:39PM -0400, Jörn Engel wrote: > On Mon, 22 April 2013 15:42:03 -0700, Guenter Roeck wrote: > > > > Copying the watchdog mailing list. > > I had no idea it exists. Thanks! > > > On Mon, Apr 22, 2013 at 03:43:47PM -0400, Jörn Engel wrote: > > > This patch adds a

Re: [PATCH] genirq: use irq_mask as fallback for irq_disable.

2013-04-22 Thread Andrew Morton
On Fri, 19 Apr 2013 15:41:02 +0200 Andreas Fenkart wrote: > This is in line with irq_enable that uses the same fallback. > When masked, interrupts are still latched into the status register > so when unmasked there is an interrupt straight away. > > ... > > --- a/kernel/irq/chip.c > +++

Re: [PATCH]drivers:acpi: Fix wrong parameter passed to memblock_reserve

2013-04-22 Thread Rafael J. Wysocki
On Friday, April 19, 2013 12:40:46 PM Wang YanQing wrote: > On Mon, Apr 15, 2013 at 07:47:38PM -0700, Yinghai Lu wrote: > > On Mon, Apr 15, 2013 at 6:44 PM, Wang YanQing wrote: > > > > > > The parameter of memblock_reserve is start address, > > > and size, not address range. > > > > > >

Re: [PATCH] slab: Remove unnecessary __builtin_constant_p()

2013-04-22 Thread Steven Rostedt
On Mon, 2013-04-22 at 14:16 -0700, Andrew Morton wrote: > On Mon, 22 Apr 2013 16:58:21 -0400 Steven Rostedt wrote: > > When looking into this, we found the only two users of the index_of() > > static function that has this issue, passes in size_of(), which will > > always be a constant, making

Re: Preemptable Ticket Spinlock

2013-04-22 Thread Rik van Riel
On 04/22/2013 05:56 PM, Andi Kleen wrote: Rik van Riel writes: If we always incremented the ticket number by 2 (instead of 1), then we could use the lower bit of the ticket number as the spinlock. Spinning on a single bit is very inefficient, as you need to do try lock in a loop which is

Re: Preemptable Ticket Spinlock

2013-04-22 Thread Rik van Riel
On 04/22/2013 04:55 PM, Peter Zijlstra wrote: On Mon, 2013-04-22 at 16:46 -0400, Jiannan Ouyang wrote: - pv-preemptable-lock has much less performance variance compare to pv_lock, because it adapts to preemption within VM, other than using rescheduling that increase VM interference I

Re: [PATCH] Watchdog: add pretimeout

2013-04-22 Thread Jörn Engel
On Mon, 22 April 2013 15:42:03 -0700, Guenter Roeck wrote: > > Copying the watchdog mailing list. I had no idea it exists. Thanks! > On Mon, Apr 22, 2013 at 03:43:47PM -0400, Jörn Engel wrote: > > This patch adds a pretimeout with three actions to the generic watchdog > > code: > > 1) Print a

Re: [PATCH] kernel/audit_tree.c: tree will memory leak when failure occurs for audit_trim_trees()

2013-04-22 Thread Andrew Morton
On Fri, 19 Apr 2013 17:39:06 +0800 Chen Gang wrote: > > in audit_trim_trees(), has called get_tree() before failure occurs, > so need also call put_tree after go to skip_it: > > ... > > --- a/kernel/audit_tree.c > +++ b/kernel/audit_tree.c > @@ -617,10 +617,10 @@ void audit_trim_trees(void) >

Re: [PATCH v8 0/3] of/pci: Provide common support for PCI DT parsing

2013-04-22 Thread Jason Cooper
On Mon, Apr 22, 2013 at 12:53:43PM -0400, Jason Cooper wrote: > On Mon, Apr 22, 2013 at 11:41:32AM +0100, Andrew Murray wrote: > > This patchset factors out duplicated code associated with parsing PCI > > DT "ranges" properties across the architectures and introduces a > > "ranges" parser. This

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

2013-04-22 Thread Rafael J. Wysocki
On Monday, April 22, 2013 08:39:15 PM Chun-Yi Lee wrote: > From: "Lee, Chun-Yi" > > There have 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.

Re: sparc64, mm BUG in 3.9-rc8

2013-04-22 Thread David Miller
From: Meelis Roos Date: Tue, 23 Apr 2013 00:19:49 +0300 (EEST) >> > Hello, I got a non-booting Sun E420R (sparc64) with 3.9-rc8: BUG-s in >> > mm/slub.c:925 and mm/memory.c:1267 (the latter keeps scrolling until >> > other things break and panic comes from trying to kill init). This is >> >

Re: Excessive stall times on ext4 in 3.9-rc2

2013-04-22 Thread Jeff Moyer
Mel Gorman writes: > (Adding Jeff Moyer to the cc as I'm told he is interested in the blktrace) Thanks. I've got a few comments and corrections for you below. > TLDR: Flusher writes pages very quickly after processes dirty a buffer. Reads > starve flusher writes. [snip] > 3. The blktrace

  1   2   3   4   5   6   7   8   9   10   >