Re: [PATCH 01/10] mm: vmscan: Limit the number of pages kswapd reclaims at each priority

2013-04-10 Thread Will Huck
Hi Rik, On 03/22/2013 11:52 AM, Rik van Riel wrote: On 03/21/2013 08:05 PM, Will Huck wrote: One offline question, how to understand this in function balance_pgdat: /* * Do some background aging of the anon list, to give * pages a chance to be referenced before reclaiming. */

Re: [PATCH 01/10] mm: vmscan: Limit the number of pages kswapd reclaims at each priority

2013-04-10 Thread Will Huck
Hi Rik, On 03/22/2013 11:52 AM, Rik van Riel wrote: On 03/21/2013 08:05 PM, Will Huck wrote: One offline question, how to understand this in function balance_pgdat: /* * Do some background aging of the anon list, to give * pages a chance to be referenced before reclaiming. */

cirrusfb: possible circular locking dependency

2013-04-10 Thread dyoung
lockdep is complaining about below, I see it often in kvm guests, False postive? [ 600.383445] == [ 600.383447] [ INFO: possible circular locking dependency detected ] [ 600.383452] 3.9.0-rc5+ #71 Not tainted [ 600.383454]

[PATCH v2] kernel: kallsyms: memory override issue, need check destination buffer length

2013-04-10 Thread Chen Gang
We don't export any symbols > 128 characters, but if we did then kallsyms_expand_symbol() would overflow the buffer handed to it. So we need check destination buffer length when copying. the related test: if we define an EXPORT function which name more than 128. will panic when

Re: [PATCH] Do not force shutdown/reboot to boot cpu.

2013-04-10 Thread Paul Mackerras
On Wed, Apr 10, 2013 at 08:10:05AM -0700, Linus Torvalds wrote: > The optimal solution would be to just speed up the > disable_nonboot_cpus() code so much that it isn't an issue. That would > be good for suspending too, although I guess suspend isn't a big issue > if you have a thousand CPU's. >

linux-next: manual merge of the driver-core tree with the tip tree

2013-04-10 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the driver-core tree got a conflict in kernel/rtmutex-tester.c between commit 8184004ed7a0 ("locking/rtmutex/tester: Set correct permissions on sysfs files") from the tip tree and commit 928c0c1571b0 ("rtmutex-tester: fix mode of sysfs files") from the

Re: [PATCH] drm/i915: don't check inconsistent modeset state when force-restoring

2013-04-10 Thread Tomas Melin
On Wed, Apr 10, 2013 at 9:32 PM, Tomas Melin wrote: > On Tue, Apr 9, 2013 at 10:51 PM, Daniel Vetter wrote: >> v2: Try harder not to create a big patch (Chris). >> > Tested the patch applied to 3.9-rc6. Atleast on my machine that > helped, although once I managed to get the error (but not

Re: [PATCH 13/30] video/s3c: move platform_data out of arch/arm

2013-04-10 Thread Jingoo Han
On Thursday, April 11, 2013 9:05 AM, Arnd Bergmann wrote: > > The s3c-fb driver requires header files from the samsung platforms > to find its platform_data definition, but this no longer works on > multiplatform kernels, so let's move the data into a new header > file under

Re: [PATCH 12/30] video/exynos: remove unnecessary header inclusions

2013-04-10 Thread Jingoo Han
On Thursday, April 11, 2013 9:05 AM, Arnd Bergmann wrote: > > In multiplatform configurations, we cannot include headers > provided by only the exynos platform. Fortunately a number > of drivers that include those headers do not actually need > them, so we can just remove the inclusions. > >

Re: [PATCH] module: add kset_obj_exists() and use it

2013-04-10 Thread Veaceslav Falico
On Thu, Apr 11, 2013 at 11:28:06AM +0930, Rusty Russell wrote: Greg KH writes: On Tue, Apr 09, 2013 at 01:22:09PM +0200, Veaceslav Falico wrote: Add a new function, kset_obj_exists(), which is identical to kset_find_obj() but doesn't take a reference to the kobject found and only returns

Re: Kexec couldn't reboot capture kernel on pandaboard ES with OMAP4460

2013-04-10 Thread Li Haifeng
2013/4/10 Stephen Warren : > On 04/10/2013 03:35 AM, Li Haifeng wrote: >> Hi, everyone. >> >> Recently, I try to run kdump on pandaboard ES with omap4460. After >> load capture kernel by "kexec -l" and execute "kexec -e", the serial >> port output "Starting new kernel" and "Bye", then the system

Re: [PATCH 13/30] video/s3c: move platform_data out of arch/arm

2013-04-10 Thread Jingoo Han
On Thursday, April 11, 2013 9:05 AM, Arnd Bergmann wrote: > > The s3c-fb driver requires header files from the samsung platforms > to find its platform_data definition, but this no longer works on > multiplatform kernels, so let's move the data into a new header > file under

Re: [PATCH] kernel: kallsyms: parameters checking, for EXPORT_SYMBOL_GPL functions

2013-04-10 Thread Chen Gang
On 2013年04月11日 10:52, Rusty Russell wrote: >>> >> Or is someone already doing this? >>> >> >> > >> > really has: >> > >> > kernel: __wake_up_sync_key in kernel/sched/core.c. >> > lib: *printf. >> > mm: kfree. > No, I mean "is someone calling these functions with NULL". > > Cheers,

Re: [PATCH] kernel: kallsyms: memory override issue, need check destination buffer length

2013-04-10 Thread Chen Gang
On 2013年04月11日 12:08, Rusty Russell wrote: > Chen Gang writes: >> We don't export any symbols > 128 characters, but if we did then >> kallsyms_expand_symbol() would overflow the buffer handed to it. >> So we need check destination buffer length when copying. >> >> the related test: >>

Re: [PATCH] kernel: auditfilter: looping issue, memory leak if has 2 or more AUDIT_FILTERKEYs

2013-04-10 Thread Chen Gang
On 2013年04月11日 05:19, Eric Paris wrote: > - Original Message - > >> > b. has an new issue for AUDIT_DIR: >> >after AUDIT_DIR succeed, it will set rule->tree. >> >next, the other case fail, then will call audit_free_rule. >> >but audit_free_rule will not free

Re: [PATCH] driver core: add uid and gid to devtmpfs

2013-04-10 Thread Eric W. Biederman
Greg KH writes: > From: Kay Sievers > > Some drivers want to tell userspace what uid and gid should be used for > their device nodes, so allow that information to percolate through the > driver core to userspace in order to make this happen. This means that > some systems (i.e. Android and

Re: [PATCH] rtc: rtc-s3c: use clk_prepare_enable and clk_disable_unprepare

2013-04-10 Thread Jingoo Han
On Wednesday, April 10, 2013 6:50 PM, Sylwester Nawrocki wrote: > On 04/09/2013 04:27 PM, Vivek Gautam wrote: > > From: Thomas Abraham > > > > Convert clk_enable/clk_disable to clk_prepare_enable/clk_disable_unprepare > > calls as required by common clock framework. > > > > Signed-off-by: Thomas

Re: [PATCH] kernel: kallsyms: memory override issue, need check destination buffer length

2013-04-10 Thread Rusty Russell
Chen Gang writes: > We don't export any symbols > 128 characters, but if we did then > kallsyms_expand_symbol() would overflow the buffer handed to it. > So we need check destination buffer length when copying. > > the related test: > if we define an EXPORT function which name more

linux-next: manual merge of the tip tree with the pm tree

2013-04-10 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in include/linux/clockchips.h between commit 4dbad816febb ("timer: move enum definition out of ifdef section") from the pm tree and commit 19919226c3f2 ("clockevents: Add missing tick_check_broadcast_expired() for CLOCKEVENTS=n")

[PATCH 2/2] regulator: ab8500: Unregister ab8500-ext regulators in probe() failure path

2013-04-10 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/ab8500.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/ab8500.c b/drivers/regulator/ab8500.c index c200f8b..ea182d3 100644 --- a/drivers/regulator/ab8500.c +++ b/drivers/regulator/ab8500.c @@ -3172,8

[PATCH 1/2] regulator: ab8500-ext: Make the return type of ab8500_ext_regulator_exit() void

2013-04-10 Thread Axel Lin
ab8500_ext_regulator_exit() never fails. Signed-off-by: Axel Lin --- drivers/regulator/ab8500-ext.c |4 +--- drivers/regulator/ab8500.c |9 +++-- include/linux/regulator/ab8500.h |2 +- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git

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

2013-04-10 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in tools/Makefile between commit e306e2c13b8c ("filter: add minimal BPF JIT image disassembler") from the net-next tree and commit 85c66be101e1 ("perf tools: Introduce tools/lib/lk library") from the tip tree. I fixed it up (see

Re: [PATCH v2] MODSIGN: do not send garbage to stderr when enabling modules signature

2013-04-10 Thread Rusty Russell
David Cohen writes: > On 04/10/2013 03:32 AM, Rusty Russell wrote: >> David Cohen writes: >>> openssl may send garbage to stderr when generating X.509 key pair for >>> modules signature regardless there was an error or not. It makes more >>> difficult to create scripts based on kernel

Re: [PATCH] kernel: kallsyms: parameters checking, for EXPORT_SYMBOL_GPL functions

2013-04-10 Thread Rusty Russell
Chen Gang writes: > On 2013年04月10日 14:57, Rusty Russell wrote: >> Chen Gang writes: >>> > for EXPORT_SYMBOL_GPL functions, necessary to check their parameters. >>> > >>> > Signed-off-by: Chen Gang >> Why? >> >> If someone misuses these functions, they crash and thus indicate that >> the

Re: [PATCH] kernel: auditfilter: looping issue, memory leak if has 2 or more AUDIT_FILTERKEYs

2013-04-10 Thread Chen Gang
On 2013年04月11日 04:08, Eric Paris wrote: > We only allow one filter key per rule. So we should never be able to get > into this situation. See audit_data_to_entry() really it is, thanks. :-) -- Chen Gang Asianux Corporation -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH] kernel: auditfilter: looping issue, memory leak if has 2 or more AUDIT_FILTERKEYs

2013-04-10 Thread Chen Gang
On 2013年04月11日 04:29, Eric Paris wrote: > - Original Message - >> > >> > >> > in another function: audit_data_to_entry: >> > >> > a. has the same issue for case AUDIT_WATCH. > You are saying if there were 2 of them it will leak the old one? No. If you > have 2 AUDIT_WATCH entries

Re: [RFC Patch 0/2] mm: Add parameters to make kernel behavior at memory error on dirty cache selectable

2013-04-10 Thread Simon Jeons
Hi Mitsuhiro, On 04/11/2013 11:26 AM, Mitsuhiro Tanino wrote: Hi All, Please find a patch set that introduces these new sysctl interfaces, to handle a case when an memory error is detected on dirty page cache. - vm.memory_failure_dirty_panic - vm.memory_failure_print_ratelimit -

[PATCHv2] powerpc/crypto: Add property for 'era' in SEC dts crypto node

2013-04-10 Thread Vakul Garg
The crypto node now contains a new property 'fsl,sec-era'. This is required so that applications can retrieve era info without having to be able to read SEC's register space. Signed-off-by: Vakul Garg --- Changelog: v2: Added era in p1023si-post.dtsi as per Kim's comments.

[PATCH] powerpc/crypto: removed qoriq-sec4.1-0.dtsi.

2013-04-10 Thread Vakul Garg
Removing qoriq-sec4.1-0.dtsi as it is not used by any soc anymore. Signed-off-by: Vakul Garg --- arch/powerpc/boot/dts/fsl/qoriq-sec4.1-0.dtsi | 109 - 1 files changed, 0 insertions(+), 109 deletions(-) delete mode 100644 arch/powerpc/boot/dts/fsl/qoriq-sec4.1-0.dtsi

Re: [PATCH] checkpatch: Warn on comparisons to true and false

2013-04-10 Thread Joe Perches
On Wed, 2013-04-10 at 22:14 -0400, Dave Jones wrote: > It would be interesting to see how many people have historically screwed > up and used (!a) when they mean (a) and vice versa, versus spelling > it out longform. I'd be surprised if the results weren't skewed > in favour of the more verbose

Re: [PATCH 2/3] mm, slub: count freed pages via rcu as this task's reclaimed_slab

2013-04-10 Thread Simon Jeons
Hi Christoph, On 04/10/2013 09:54 PM, Christoph Lameter wrote: On Wed, 10 Apr 2013, Simon Jeons wrote: It seems that you misunderstand my question. I don't doubt slab/slub can use high order pages. However, what I focus on is why slab/slub can use compound page, PageCompound() just on behalf

Re: [PATCH] kernel: auditfilter: looping issue, memory leak if has 2 or more AUDIT_FILTERKEYs

2013-04-10 Thread Chen Gang
On 2013年04月11日 05:32, Eric Paris wrote: > - Original Message - >> > >> > also for function audit_list: >> > when call audit_make_reply fails (will return NULL). >> > we need free all its related variables instead of only kfree rull. >> > (such as call autit_free_rule) >> >

[PATCH 3/4] ARM: mmp: bring up pxa988 with device tree support

2013-04-10 Thread Neil Zhang
bring up pxa988 with device tree support. Signed-off-by: Neil Zhang Signed-off-by: Chao Xie --- arch/arm/boot/dts/pxa988-dkb.dts | 36 ++ arch/arm/boot/dts/pxa988.dtsi | 196 + arch/arm/mach-mmp/Kconfig | 25

[PATCH 2/4] ARM: mmp: move function declaration to head file

2013-04-10 Thread Neil Zhang
Move some of the function declaration to head file. Signed-off-by: Neil Zhang Signed-off-by: Chao Xie --- arch/arm/mach-mmp/common.h |3 +++ arch/arm/mach-mmp/mmp-dt.c |3 --- arch/arm/mach-mmp/mmp2-dt.c |3 --- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git

[PATCH 0/4] bring up pxa988 with DT

2013-04-10 Thread Neil Zhang
This patch sets do the following things: 1. add wakeup function for ICU. 2. move some common funciton declaration to common.h 3. bring up pxa988 with DT support Chao Xie (1): ARM: mmp: add wakeup function for ICU Neil Zhang (3): ARM: mmp: move function declaration to head file ARM: mmp:

Re: [PATCH v2] net: mv643xx_eth: use managed devm_kzalloc

2013-04-10 Thread David Miller
From: Sebastian Hesselbarth Date: Wed, 10 Apr 2013 22:42:07 +0200 > This patch moves shared private data kzalloc to managed devm_kzalloc and > cleans now unneccessary kfree and error handling. > > Signed-off-by: Sebastian Hesselbarth This doesn't apply cleanly to the net-next tree. -- To

[PATCH 4/4] ARM: mmp: add SMP support for pxa988

2013-04-10 Thread Neil Zhang
Add SMP support for pxa988. Signed-off-by: Neil Zhang Signed-off-by: Chao Xie --- arch/arm/mach-mmp/Makefile |4 + arch/arm/mach-mmp/common.h |2 + arch/arm/mach-mmp/headsmp.S | 104 ++ arch/arm/mach-mmp/mmpx-dt.c |1 + arch/arm/mach-mmp/platsmp.c | 170

[PATCH 1/4] ARM: mmp: add wakeup function for ICU

2013-04-10 Thread Neil Zhang
From: Chao Xie PXA988 will use GIC as its interrupt controller, and ICU is used as wakeup logic. When AP subsystem is powered off, GIC will lose its context, the PMU will need ICU to wakeup the AP subsystem. When ICU works as wakeup logic, there is no need to know intc-nr-irqs, change the

Re: [PATCH v3 00/12] event tracing expose change and bugfix/cleanup

2013-04-10 Thread zhangwei(Jovi)
On 2013/4/10 23:08, Steven Rostedt wrote: > On Wed, 2013-04-10 at 11:26 +0800, zhangwei(Jovi) wrote: >> From: "zhangwei(Jovi)" >> >> Hi steven, >> >> I have reworked this patchset again with minor change. >> [v2 -> v3: >> - change trace_descripte_t defintion in patch 3 >> - new patch "export

Re: [PATCH] process cputimer is moving faster than its corresponding clock

2013-04-10 Thread Olivier Langlois
On Wed, 2013-04-10 at 13:35 +0200, Peter Zijlstra wrote: > On Fri, 2013-04-05 at 13:59 -0400, Olivier Langlois wrote: > > Process timers are moving fasters than their corresponding > > cpu clock for various reasons: > > > > 1. There is a race condition when getting a timer sample that makes the

[RFC Patch 2/2] mm: Add parameters to limit a rate of outputting memory error messages

2013-04-10 Thread Mitsuhiro Tanino
This patch introduces new sysctl interfaces in order to limit a rate of outputting memory error messages. - vm.memory_failure_print_ratelimit: Specify the minimum length of time between messages. By default the rate limiting is disabled. - vm.memory_failure_print_ratelimit_burst: Specify

[RFC Patch 1/2] mm: Add a parameter to force a kernel panic when memory error occurs on dirty cache

2013-04-10 Thread Mitsuhiro Tanino
This patch introduces a sysctl interface, vm.memory_failure_dirty_panic, to provide selectable actions when a memory error is detected on dirty page cache. Signed-off-by: Mitsuhiro Tanino --- diff --git a/a/Documentation/sysctl/vm.txt b/b/Documentation/sysctl/vm.txt index 078701f..7dad994

[RFC Patch 0/2] mm: Add parameters to make kernel behavior at memory error on dirty cache selectable

2013-04-10 Thread Mitsuhiro Tanino
Hi All, Please find a patch set that introduces these new sysctl interfaces, to handle a case when an memory error is detected on dirty page cache. - vm.memory_failure_dirty_panic - vm.memory_failure_print_ratelimit - vm.memory_failure_print_ratelimit_burst Problem - Recently, it is

Re: [PATCH] net: mvmdio: add clocks property to binding documentation

2013-04-10 Thread David Miller
From: Sebastian Hesselbarth Date: Wed, 10 Apr 2013 19:36:29 +0200 > Patch "net: mvmdio: get and enable optional clock" was missing an > update of the corresponding device tree binding documentation. This > patch adds the clocks property to mvmdio binding documentation. > > Signed-off-by:

Re: [PATCH] tcp: incoming connections might use wrong route under synflood

2013-04-10 Thread David Miller
From: Dmitry Popov Date: Thu, 11 Apr 2013 00:09:09 +0400 > There is a bug in cookie_v4_check (net/ipv4/syncookies.c): > flowi4_init_output(, 0, sk->sk_mark, RT_CONN_FLAGS(sk), > RT_SCOPE_UNIVERSE, IPPROTO_TCP, > inet_sk_flowi_flags(sk), >

Re: [PATCH 3.8-stable] net: count hw_addr syncs so that unsync works properly.

2013-04-10 Thread David Miller
From: Jeremy Kerr Date: Thu, 11 Apr 2013 13:02:15 +1000 > Hi all, > This patch looks like it should be in the 3.8-stable tree, should we apply it? >>> >>> I queue up networking patches as needed and that queue is >>> visible at: >>> >>>

Re: [PATCH] net: usb: active URB submitted multiple times

2013-04-10 Thread David Miller
I think you need to read Documentation/SubmittingPatches, and Documentation/email-clients.txt Do not submit the diff for the individual files seperately, provide all the changes together as a single patch. Do not use an attachment, instead provide your patch inline as plain ASCII, unformatted

[PATCH] kernel: kallsyms: memory override issue, need check destination buffer length

2013-04-10 Thread Chen Gang
We don't export any symbols > 128 characters, but if we did then kallsyms_expand_symbol() would overflow the buffer handed to it. So we need check destination buffer length when copying. the related test: if we define an EXPORT function which name more than 128. will panic when

Re: [PATCH 3.8-stable] net: count hw_addr syncs so that unsync works properly.

2013-04-10 Thread Jeremy Kerr
Hi all, >>> This patch looks like it should be in the 3.8-stable tree, should we apply >>> it? >> >> I queue up networking patches as needed and that queue is >> visible at: >> >> http://patchwork.ozlabs.org/user/bundle/2566/?state=* > > Actually, this bundle is not visible via that link. It

Re: [PATCH/RFC 4/6] ARM: shmobile: sh73a0: add support for the DMA0 controller in DT

2013-04-10 Thread Simon Horman
On Thu, Apr 11, 2013 at 12:01:27PM +0900, Simon Horman wrote: > On Thu, Apr 11, 2013 at 12:19:47AM +0200, Guennadi Liakhovetski wrote: > > Add a Device Tree node for the DMA0 controller on sh73a0 and > > auxdata to supply platform data to the driver. To enable the > > DMA0 controller it also has

Re: [PATCH/RFC 4/6] ARM: shmobile: sh73a0: add support for the DMA0 controller in DT

2013-04-10 Thread Simon Horman
On Thu, Apr 11, 2013 at 12:19:47AM +0200, Guennadi Liakhovetski wrote: > Add a Device Tree node for the DMA0 controller on sh73a0 and > auxdata to supply platform data to the driver. To enable the > DMA0 controller it also has to be taken out of reset. > > Signed-off-by: Guennadi Liakhovetski

Re: [PATCH/RFC 6/6] ARM: shmobile: kzm9g-reference: add DMA channels to the MMCIF DT

2013-04-10 Thread Simon Horman
On Thu, Apr 11, 2013 at 12:19:49AM +0200, Guennadi Liakhovetski wrote: > The MMCIF driver can use DMA for data transfer, add suitable > Device Tree bindings. > > Signed-off-by: Guennadi Liakhovetski Hi Guennadi, this seems reasonable to me. I guess the best thing is for you to repost it once

Re: [PATCH 3.8-stable] net: count hw_addr syncs so that unsync works properly.

2013-04-10 Thread Stephen Rothwell
Hi Dave, On Wed, 10 Apr 2013 20:54:01 -0400 (EDT) David Miller wrote: > > From: Jonghwan Choi > Date: Thu, 11 Apr 2013 09:31:44 +0900 > > > This patch looks like it should be in the 3.8-stable tree, should we apply > > it? > > I queue up networking patches as needed and that queue is >

Re: [PATCH] x86: add phys addr validity check for /dev/mem mmap

2013-04-10 Thread Simon Jeons
Hi H.Peter, On 04/11/2013 10:48 AM, H. Peter Anvin wrote: On 04/10/2013 07:40 PM, Simon Jeons wrote: Hi H.Peter, On 04/04/2013 09:13 AM, H. Peter Anvin wrote: On 04/03/2013 06:11 PM, Simon Jeons wrote: Why we consider boot_cpu_data.x86_phys_bits instead of e820 map here? Because

Re: [PATCH] rbd: revalidate_disk upon rbd resize

2013-04-10 Thread Alex Elder
On 04/10/2013 02:30 PM, Alex Elder wrote: > On 04/10/2013 11:06 AM, Laurent Barbe wrote: >> If rbd disk is open and rbd resize is done, new size is not visible by >> filesystem. >> Like is done in virtio-blk and dm driver, revalidate_disk() permits to >> update the bd_inode size. > > Looks good

Re: [PATCH 1/4] Documentation: Add memory mapped ARM architected timer binding

2013-04-10 Thread Stephen Boyd
On 04/10/13 03:13, Mark Rutland wrote: + +- #size-cells : Must be 1. + +- ranges : Indicates parent and child bus address space are the same. + >>> Similarly, what if someone wants to write a more complex mapping for some >>> reason? >>> >>> We should be able to handle it

Re: [PATCH] x86: add phys addr validity check for /dev/mem mmap

2013-04-10 Thread H. Peter Anvin
On 04/10/2013 07:40 PM, Simon Jeons wrote: > Hi H.Peter, > On 04/04/2013 09:13 AM, H. Peter Anvin wrote: >> On 04/03/2013 06:11 PM, Simon Jeons wrote: >>> Why we consider boot_cpu_data.x86_phys_bits instead of e820 map here? >>> >> Because x86_phys_bits is what controls how much address space the

mm/slab: extremly high slab cache problem

2013-04-10 Thread lulu he
Hi, I'am not used to ask but I have followed every piece of information I could not find solution, so I'am trying here for help. On one of my server, I have some memory/disk KV service, Memory KV behave like memcached, ask for a big trunk of memory(10GB) when initialized, Disk Kv behave like

[PATCH v2] Add new model: rts5249

2013-04-10 Thread wei_wang
From: Wei WANG v2: 1. Modify copyright notice 2. Add macro definitions for phy registers 3. Replace mdelay with msleep Wei WANG (1): mfd:rtsx: Support RTS5249 drivers/mfd/Makefile |2 +- drivers/mfd/rts5249.c| 241 ++

[PATCH v2] mfd:rtsx: Support RTS5249

2013-04-10 Thread wei_wang
From: Wei WANG Support new model: RTS5249 Signed-off-by: Wei WANG --- drivers/mfd/Makefile |2 +- drivers/mfd/rts5249.c| 241 ++ drivers/mfd/rtsx_pcr.c |5 + drivers/mfd/rtsx_pcr.h |1 +

Re: [PATCH] Sys V shared memory limited to 8TiB.

2013-04-10 Thread Robin Holt
On Wed, Apr 10, 2013 at 04:15:07PM -0700, Andrew Morton wrote: > On Tue, 9 Apr 2013 21:39:24 -0500 Robin Holt wrote: > > > Trying to run an application which was trying to put data into half > > of memory using shmget(), we found that having a shmall value below > > 8EiB-8TiB would prevent us

Re: [PATCH] x86: add phys addr validity check for /dev/mem mmap

2013-04-10 Thread Simon Jeons
Hi H.Peter, On 04/04/2013 09:13 AM, H. Peter Anvin wrote: On 04/03/2013 06:11 PM, Simon Jeons wrote: Why we consider boot_cpu_data.x86_phys_bits instead of e820 map here? Because x86_phys_bits is what controls how much address space the processor has. e820 tells us how much *RAM* the machine

[PATCH] KVM: ARM: Fix wrong address in comment

2013-04-10 Thread Jonghwan Choi
hyp_hvc vector offset should be 0x14 and hyp_svc vector offset should be 0x8. Signed-off-by: Jonghwan Choi --- arch/arm/kvm/interrupts.S |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/kvm/interrupts.S b/arch/arm/kvm/interrupts.S index 8ca87ab..a8e0c2d 100644

Re: [PATCH] checkpatch: Warn on comparisons to true and false

2013-04-10 Thread Dave Jones
On Wed, Apr 10, 2013 at 03:57:51PM -0700, Andrew Morton wrote: > On Tue, 09 Apr 2013 20:17:14 -0700 Joe Perches wrote: > > > Comparisons of A to true and false are better written > > as A and !A. > > > > Bleat a message on use. > > hm. I'm counting around 1,100 instances of "== true"

regulator: Some patches for twl-regulator are not found in regulator tree

2013-04-10 Thread Axel Lin
Hi Mark, I found some patches for twl are not in linux-next, and I cannot find them in your tree ( although you replied the patches applied. ) I think below patches are missing: [PATCH] regulator: twl: Remove TWL6030_FIXED_RESOURCE [1] [PATCH] regulator: twl: Remove VDD1_VSEL_table and

[PATCH 3.8-stable] GFS2: Fix unlock of fcntl locks during withdrawn state

2013-04-10 Thread Jonghwan Choi
This patch looks like it should be in the 3.8-stable tree, should we apply it? -- From: "Steven Whitehouse " commit c2952d202f710d326ac36a8ea6bd216b20615ec8 upstream When withdraw occurs, we need to continue to allow unlocks of fcntl locks to occur, however these will only be

[PATCH 3.8-stable] GFS2: return error if malloc failed in gfs2_rs_alloc()

2013-04-10 Thread Jonghwan Choi
This patch looks like it should be in the 3.8-stable tree, should we apply it? -- From: "Wei Yongjun " commit 441362d06be349430d06e37286adce4b90e6ce96 upstream The error code in gfs2_rs_alloc() is set to ENOMEM when error but never be used, instead, gfs2_rs_alloc() always

Re: [PATCH] module: add kset_obj_exists() and use it

2013-04-10 Thread Rusty Russell
Greg KH writes: > On Tue, Apr 09, 2013 at 01:22:09PM +0200, Veaceslav Falico wrote: >> Add a new function, kset_obj_exists(), which is identical to >> kset_find_obj() but doesn't take a reference to the kobject >> found and only returns bool if found/not found. >> >> The main purpose would be

Re: [char-misc-next 0/3 v7] Support NFC device on MEI CL bus

2013-04-10 Thread Greg KH
On Thu, Apr 11, 2013 at 03:03:28AM +0200, Samuel Ortiz wrote: > v6 -> v7: >* Removed include/uapi/linux/mei/nfc.h. > All MEI NFC definitions are now folded into drivers/misc/mei/nfc.c All now applied, thanks for the persistance. greg k-h -- To unsubscribe from this list: send the line

Re: [PATCHv9 2/8] zsmalloc: add documentation

2013-04-10 Thread Rob Landley
On 04/10/2013 01:18:54 PM, Seth Jennings wrote: This patch adds a documentation file for zsmalloc at Documentation/vm/zsmalloc.txt Docs acked-by: Rob Landley Literary criticism below: Signed-off-by: Seth Jennings --- Documentation/vm/zsmalloc.txt | 68

Re: [PATCH v8 10/13] PCI/acpiphp: do not use ACPI PCI subdriver mechanism

2013-04-10 Thread Yijing Wang
>> Hi Bjorn, >> Thanks for review. >> >>> My goal is that a user should never have to specify a kernel boot >>> parameter or edit a modules.conf file, but the user did previously >>> have some way to influence whether we use pciehp or acpiphp. I know >>> we still have some issues,

Re: [PATCHv9 8/8] zswap: add documentation

2013-04-10 Thread Rob Landley
On 04/10/2013 01:19:00 PM, Seth Jennings wrote: This patch adds the documentation file for the zswap functionality Signed-off-by: Seth Jennings --- Documentation/vm/zsmalloc.txt | 2 +- Documentation/vm/zswap.txt| 82 +++ 2 files changed, 83

Re: [PATCH 14/30] thermal/exynos: remove unnecessary header inclusions

2013-04-10 Thread Eduardo Valentin
Rui, Arnd, As agreed in [1], I will be helping on the thermal maintenance. On 10-04-2013 20:04, Arnd Bergmann wrote: In multiplatform configurations, we cannot include headers provided by only the exynos platform. Fortunately a number of drivers that include those headers do not actually need

Re: [PATCH] kernel: auditfilter: looping issue, memory leak if has 2 or more AUDIT_FILTERKEYs

2013-04-10 Thread Chen Gang
On 2013年04月11日 05:38, Eric Paris wrote: > - Original Message - >> > >> > also for function audit_list_rules: >> > when call audit_make_reply fails (will return NULL). >> > we also need process data->buf, not only data itself. >> > >> > please help check, thanks. > struct

Re: [PATCH] checkpatch: Warn on comparisons to true and false

2013-04-10 Thread Joe Perches
On Wed, 2013-04-10 at 15:57 -0700, Andrew Morton wrote: > On Tue, 09 Apr 2013 20:17:14 -0700 Joe Perches wrote: > > Comparisons of A to true and false are better written > > as A and !A. > > Bleat a message on use. > hm. I'm counting around 1,100 instances of "== true" and "== false". And about

Re: [PATCH 09/30] mmc: sdhci-s3c: remove platform dependencies

2013-04-10 Thread Chris Ball
Hi, On Wed, Apr 10 2013, Arnd Bergmann wrote: > plat/regs-sdhci.h is not used anywhere but in the sdhci-s3c > driver, so it can become a local file there and all other > inclusions removed. > > plat/sdhci.h is used only to define the platform devices, > and with the exception of the platform_data

[char-misc-next 3/3 v7] mei: nfc: Implement MEI bus ops

2013-04-10 Thread Samuel Ortiz
The send ops for NFC builds the command header, updates the request id and then waits for an ACK. The recv ops check if it receives data or an ACK and in the latter case wakes the send ops up. The enable ops sends the NFC HECI connect command. Signed-off-by: Samuel Ortiz Signed-off-by: Tomas

Re: [PATCH] kernel: audit: beautify code, for extern function, better to check its parameters by itself

2013-04-10 Thread Chen Gang
On 2013年04月11日 01:31, Eric Paris wrote: > - Original Message - >> > >> > __audit_socketcall is an extern function. >> > better to check its parameters by itself. >> > >> > also can return error code, when fail (find invalid parameters). >> > also use macro instead of real

[char-misc-next 2/3 v7] mei: nfc: Add NFC device to the MEI bus

2013-04-10 Thread Samuel Ortiz
After building its bus name as a string based on its vendor id and radio type, we can add it to the bus. Signed-off-by: Samuel Ortiz Signed-off-by: Tomas Winkler --- drivers/misc/mei/nfc.c | 75 1 file changed, 75 insertions(+) diff --git

[char-misc-next 0/3 v7] Support NFC device on MEI CL bus

2013-04-10 Thread Samuel Ortiz
v6 -> v7: * Removed include/uapi/linux/mei/nfc.h. All MEI NFC definitions are now folded into drivers/misc/mei/nfc.c Samuel Ortiz (3): mei: nfc: Initial nfc implementation mei: nfc: Add NFC device to the MEI bus mei: nfc: Implement MEI bus ops drivers/misc/mei/Makefile |1 +

[char-misc-next 1/3 v7] mei: nfc: Initial nfc implementation

2013-04-10 Thread Samuel Ortiz
NFC ME device is exported through the MEI bus to be consumed by the NFC subsystem. NFC is represented by two mei clients: An info one and the actual NFC one. In order to properly build the ME id we first need to retrieve the firmware information from the info client and then disconnect from it.

[PATCH] ARM: msm: Fix uncompess.h tx underrun check

2013-04-10 Thread Stephen Boyd
Bit 3 of the SR register is set if there is a tx underrun. If this bit isn't set, we should loop on the tx ready bit until we can transmit again. Otherwise we should skip the loop and transmit immediately. The code is doing the opposite though, checking for an underrun and then looping on the tx

Re: [PATCH 3.8-stable] net: count hw_addr syncs so that unsync works properly.

2013-04-10 Thread David Miller
From: Jonghwan Choi Date: Thu, 11 Apr 2013 09:31:44 +0900 > This patch looks like it should be in the 3.8-stable tree, should we apply > it? I queue up networking patches as needed and that queue is visible at: http://patchwork.ozlabs.org/user/bundle/2566/?state=* and yes this patch, along

Re: [PATCH 1/5] clean up checks against "high_memory" variable

2013-04-10 Thread Borislav Petkov
On Wed, Apr 10, 2013 at 04:32:50PM -0700, Dave Hansen wrote: > > We have a new debugging check on x86 that has caught a number > of long-standing bugs. However, there is a _bit_ of collateral > damage with things that call __pa(high_memory). > > We are now checking that any addresses passed to

[PATCH 3.8-stable] net: count hw_addr syncs so that unsync works properly.

2013-04-10 Thread Jonghwan Choi
This patch looks like it should be in the 3.8-stable tree, should we apply it? -- From: "Vlad Yasevich " commit 4543fbefe6e06a9e40d9f2b28d688393a299f079 upstream A few drivers use dev_uc_sync/unsync to synchronize the address lists from master down to slave/lower devices. In

[tip:x86/urgent] x86, mm: Patch out arch_flush_lazy_mmu_mode() when running on bare metal

2013-04-10 Thread tip-bot for Boris Ostrovsky
Commit-ID: 511ba86e1d386f671084b5d0e6f110bb30b8eeb2 Gitweb: http://git.kernel.org/tip/511ba86e1d386f671084b5d0e6f110bb30b8eeb2 Author: Boris Ostrovsky AuthorDate: Sat, 23 Mar 2013 09:36:36 -0400 Committer: H. Peter Anvin CommitDate: Wed, 10 Apr 2013 11:25:10 -0700 x86, mm: Patch out

[tip:x86/urgent] x86, mm, paravirt: Fix vmalloc_fault oops during lazy MMU updates

2013-04-10 Thread tip-bot for Samu Kallio
Commit-ID: 1160c2779b826c6f5c08e5cc542de58fd1f667d5 Gitweb: http://git.kernel.org/tip/1160c2779b826c6f5c08e5cc542de58fd1f667d5 Author: Samu Kallio AuthorDate: Sat, 23 Mar 2013 09:36:35 -0400 Committer: H. Peter Anvin CommitDate: Wed, 10 Apr 2013 11:25:07 -0700 x86, mm, paravirt: Fix

Re: [PATCH 15/30] mtd: onenand/samsung: make regs-onenand.h file local

2013-04-10 Thread Kyungmin Park
Thanks Arnd. On Thu, Apr 11, 2013 at 9:04 AM, Arnd Bergmann wrote: > Nothing uses the NAND register definitions other than the > actual driver, so we can move the header file into the > same local directory, which lets us build it in a multiplatform > configuration. > > Signed-off-by: Arnd

Re: [PATCH 02/30] ARM: exynos: prepare for sparse IRQ

2013-04-10 Thread Kyungmin Park
On Thu, Apr 11, 2013 at 9:04 AM, Arnd Bergmann wrote: > When we enable CONFIG_SPARSE_IRQ, we have to set the value of NR_IRQS in > the machine_desc for legacy IRQ domains, and any file referring to the > number of interrupts or a specific number must include the mach/irqs.h > header file

Re: [PATCH 02/10] mm: vmscan: Obey proportional scanning requirements for kswapd

2013-04-10 Thread Kamezawa Hiroyuki
(2013/04/10 23:08), Mel Gorman wrote: On Wed, Apr 10, 2013 at 04:16:47PM +0900, Kamezawa Hiroyuki wrote: (2013/04/09 20:06), Mel Gorman wrote: Simplistically, the anon and file LRU lists are scanned proportionally depending on the value of vm.swappiness although there are other factors taken

Re: [PATCH] vfs: dcache: cond_resched in shrink_dentry_list

2013-04-10 Thread Greg Thelen
On Wed, Apr 10 2013, Andrew Morton wrote: > On Tue, 09 Apr 2013 17:37:20 -0700 Greg Thelen wrote: > >> > Call cond_resched() in shrink_dcache_parent() to maintain >> > interactivity. >> > >> > Before this patch: >> > >> > void shrink_dcache_parent(struct dentry * parent) >> > { >> >while

[PATCH 10/30] usb: exynos: do not include plat/usb-phy.h

2013-04-10 Thread Arnd Bergmann
The definitions have moved to include/linux/usb/samsung-usb-phy.h, and plat/usb-phy.h is unavailable from drivers in a multiplatform configuration. Also fix up the plat/usb-phy.h header file to use the definitions from the new header instead of providing a separate copy. Signed-off-by: Arnd

[PATCH 07/30] tty: serial/samsung: fix modular build

2013-04-10 Thread Arnd Bergmann
There are a few bugs in the samsung serial driver when built as a loadable module, which makes the console code unavailable, as well as giving no access to the 'printascii' early debug function. This adds the appropriate compile time conditionals. Signed-off-by: Arnd Bergmann Cc:

[PATCH 13/30] video/s3c: move platform_data out of arch/arm

2013-04-10 Thread Arnd Bergmann
The s3c-fb driver requires header files from the samsung platforms to find its platform_data definition, but this no longer works on multiplatform kernels, so let's move the data into a new header file under include/linux/platform_data. Signed-off-by: Arnd Bergmann Cc:

[PATCH 05/30] tty: serial/samsung: prepare for common clock API

2013-04-10 Thread Arnd Bergmann
With the common clock interface, there is no way to provide the "clock_source" sysfs attribute for the samsung serial ports. Given that this file was purely informational and had fixed contents, we have reason to believe that no user space programs were relying on it. The sysfs file is not

Re: [PATCH 11/30] [media] exynos: remove unnecessary header inclusions

2013-04-10 Thread Mauro Carvalho Chehab
Em Thu, 11 Apr 2013 02:04:53 +0200 Arnd Bergmann escreveu: > In multiplatform configurations, we cannot include headers > provided by only the exynos platform. Fortunately a number > of drivers that include those headers do not actually need > them, so we can just remove the inclusions. > >

[PATCH 18/30] ASoC: samsung: move plat/ headers to local directory

2013-04-10 Thread Arnd Bergmann
The plat/iis.h and plat/ac97.h files in the samsung platform are only needed by the ASoC drivers, so they can be moved into the same directory, as one more step towards a multiplatform build. Signed-off-by: Arnd Bergmann Cc: alsa-de...@alsa-project.org Cc: Mark Brown Cc: Liam Girdwood ---

[PATCH 17/30] pwm: samsung: repair the worst MMIO abuses

2013-04-10 Thread Arnd Bergmann
The Samsung PWM driver uses "magic" pointers that are mapped at boot time to point its MMIO registers. This fails horribly with a multiplatform kernel, which can not rely on platform specific header files to contain the right values, aside from this being a really bad idea in general. This

[PATCH 01/30] ARM: exynos: introduce EXYNOS_ATAGS symbol

2013-04-10 Thread Arnd Bergmann
As a preparation for multiplatform support, this introduces a new Kconfig symbol to split the ATAGS based EXYNOS platforms from the DT based ones. Turning off CONFIG_EXYNOS_ATAGS disables all platforms that are not yet converted to DT, and we can have code that relies on DT checking for this

[PATCH 24/30] clocksource: exynos_mct: remove platform header dependency

2013-04-10 Thread Arnd Bergmann
For the non-DT case, the mct_init() function requires access to a couple of platform specific constants, but cannot include the header files in case we are building for multiplatform. This changes the interface to the platform so we pass all the necessary data as arguments to mct_init.

  1   2   3   4   5   6   7   8   9   10   >