Re: [PATCH v5 2/3] extcon: Palmas Extcon Driver

2013-05-26 Thread Kishon Vijay Abraham I
Hi, On Monday 27 May 2013 11:04 AM, Chanwoo Choi wrote: Hi Kishon, I have some comment about this patch and upload modified patch to following repository (extcon-for-palmas). -

[PATCH] arch: frv: kernel: using vsnprintf() instead of vsprintf()

2013-05-26 Thread Chen Gang
Since die_if_kernel() is an extern common used function, better always check the buffer length to avoid memory overflow by a long 'str'. Signed-off-by: Chen Gang --- arch/frv/kernel/traps.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/frv/kernel/traps.c

Re: BUG_ON in virtio-ring.c

2013-05-26 Thread Rusty Russell
Dave Airlie writes: >>> correct. >>> >>> If I have an indirect ring and I'm adding sgs to it and the host is >>> delayed (say I've got a thread consuming things from the vring and its >>> off doing something interesting), >>> I'd really like to get ENOSPC back from virtqueue_add. However if the

Re: [PATCH 3/3] usb: dwc3: use extcon fwrk to receive connect/disconnect notification

2013-05-26 Thread Chanwoo Choi
On 05/24/2013 11:31 PM, Kishon Vijay Abraham I wrote: > Modified dwc3-omap to receive connect and disconnect notification using > extcon framework. Also did the necessary cleanups required after > adapting to extcon framework. > > Signed-off-by: Kishon Vijay Abraham I > --- >

Re: [PATCH v5 2/3] extcon: Palmas Extcon Driver

2013-05-26 Thread Chanwoo Choi
Hi Kishon, I have some comment about this patch and upload modified patch to following repository (extcon-for-palmas). - http://git.kernel.org/cgit/linux/kernel/git/chanwoo/extcon.git/commit/?h=extcon-for-palmas=f2b7cb80699cbe1a5fd6c97ef2c600915f8d7f2c This patchset include patch related to

Re: [RFC v2 0/3][TESTS] LAB: Support for Legacy Application Booster governor - tests results

2013-05-26 Thread Viresh Kumar
On 24 May 2013 16:50, Lukasz Majewski wrote: >> On 24 May 2013 14:00, Lukasz Majewski wrote: > This is not safe IMHO to add permanently overclocked frequency to the > freq table. Since, for example, thermal framework also asks for > reference to this table. Yes, its wrong. Even adding it

Re: Fans at full speed after resume

2013-05-26 Thread Zhang Rui
On Thu, 2013-05-23 at 22:22 +0200, Michael Großhäuser wrote: > Zhang Rui wrote: > > > On Wed, 2013-05-22 at 20:46 +0200, Michael Großhäuser wrote: > >> Zhang Rui wrote: > >> > >> > On Wed, 2013-05-15 at 12:26 +0800, Zhang Rui wrote: > >> >> please > >> >> > >> >> On Tue, 2013-05-14 at 21:18

[PATCH] arch: parisc: kernel: memory overflow, 'name' length is too short for using

2013-05-26 Thread Chen Gang
'path.bc[i]' can be asigned by PCI_SLOT() which can '> 10', so sizeof(6 * "%u:" + "%u" + '\0') may be 21. Since 'name' length is 20, it may be memory overflow. And 'path.bc[i]' is 'unsigned char' for printing, we can be sure the max length of 'name' must be less than 28. So simplify thinking,

Re: [PATCH 2/2] f2fs: add sysfs support for controlling the gc_thread

2013-05-26 Thread Namjae Jeon
2013/5/27, Jaegeuk Kim : > Hi Namjae, Hi Jaegeuk. First, Thanks for your interest. > > This is an interesting functionality. > Could you describe why and when we need to do this? > What are pros and cons? > How can we use this? As the default size of the F2FS parameter can vary as per the storage

Re: [regression, bisected] x86: efi: Pass boot services variable info to runtime code

2013-05-26 Thread joeyli
於 一,2013-05-27 於 12:27 +0800,joeyli 提到: > Hi Dave, > > 於 五,2013-05-24 於 17:05 -0400,Dave Jones 提到: > > On Fri, May 24, 2013 at 12:02:15PM -0500, Russ Anderson wrote: > > > On Fri, May 24, 2013 at 11:11:11AM -0500, Robin Holt wrote: > > > > Russ, > > > > > > > > Can we open a bug for the

Re: [regression, bisected] x86: efi: Pass boot services variable info to runtime code

2013-05-26 Thread joeyli
Hi Dave, 於 五,2013-05-24 於 17:05 -0400,Dave Jones 提到: > On Fri, May 24, 2013 at 12:02:15PM -0500, Russ Anderson wrote: > > On Fri, May 24, 2013 at 11:11:11AM -0500, Robin Holt wrote: > > > Russ, > > > > > > Can we open a bug for the BIOS folks and see if we can get this > addressed? > > >

Re: [PATCH 1/1] rtc: rtc-ds1307: use devm_*() functions

2013-05-26 Thread devendra.aaru
On Mon, May 27, 2013 at 6:32 AM, Jingoo Han wrote: > On Saturday, May 25, 2013 10:51 AM, Devendra Naga wrote: >> On Sat, May 25, 2013 at 10:41 AM, Nikolay Balandin wrote: >> > From: Nikolay Balandin > > [.] > >> > >> > - ds1307->rtc = rtc_device_register(client->name, >dev, >> > +

Re: [RFC PATCHv4 1/6] arm: TI-Nspire platform code

2013-05-26 Thread Daniel Tang
On 27/05/2013, at 6:46 AM, Arnd Bergmann wrote: > > >> +{ >> +.virtual= NSPIRE_PWR_VIRT_BASE, >> +.pfn= __phys_to_pfn(NSPIRE_PWR_PHYS_BASE), >> +.length = SZ_4K, >> +.type = MT_DEVICE >> +} >> +}; >

Re: [RFC PATCHv4 0/6] arm: Initial TI-Nspire support

2013-05-26 Thread Daniel Tang
On 27/05/2013, at 7:23 AM, Arnd Bergmann wrote: > On Saturday 25 May 2013, Daniel Tang wrote: >> Changes between v3 and v4: >> * Remove redundant clock-names in device tree >> * Re-enable bus access to some peripherals on bootup >> * Clean up nspire-classic-timer code. >> - Implement a

[PATCH v2] video: simplefb: add mode parsing function

2013-05-26 Thread Alexandre Courbot
The naming scheme of simplefb's mode is precise enough to allow building the mode structure from it instead of using a static list of modes. This patch introduces a function that does this. In case exotic modes that cannot be represented from their name alone are needed, the static list of modes

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

2013-05-26 Thread Herbert Xu
On Mon, May 27, 2013 at 01:43:01PM +1000, Stephen Rothwell wrote: > Hi Herbert, > > On Mon, 27 May 2013 10:19:18 +0800 Herbert Xu > wrote: > > > > Hi Stephen, did you get a chance to switch back to the current > > cryptodev tree? > > Not quite sure what you mean? I fetch your tree every

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

2013-05-26 Thread Stephen Rothwell
Hi Herbert, On Mon, 27 May 2013 10:19:18 +0800 Herbert Xu wrote: > > Hi Stephen, did you get a chance to switch back to the current > cryptodev tree? Not quite sure what you mean? I fetch your tree every morning (that I build linux-next) so I got an update from you this morning. I haven't

Re: [GIT PULL v2] f2fs updates for v3.10

2013-05-26 Thread Jaegeuk Kim
Hi, Thank you for the report. I'm not able to reproduce this at all. In my runs, there was no regression. Can you do that? Thanks, 2013-05-15 (수), 12:09 +0300, Anca Emanuel: > Regresions: > http://www.phoronix.com/scan.php?page=article=linux_310_f2fs=3 > > The most notable one is PostgreSQL

Re: BUG_ON in virtio-ring.c

2013-05-26 Thread Dave Airlie
>> correct. >> >> If I have an indirect ring and I'm adding sgs to it and the host is >> delayed (say I've got a thread consuming things from the vring and its >> off doing something interesting), >> I'd really like to get ENOSPC back from virtqueue_add. However if the >> indirect addition fails

[PATCH RESEND 01/24] drivers/scsi/a100u2w: Convert to module_pci_driver

2013-05-26 Thread Libo Chen
use module_pci_driver instead of init/exit, make code clean. Signed-off-by: Libo Chen --- drivers/scsi/a100u2w.c | 12 +--- 1 files changed, 1 insertions(+), 11 deletions(-) * add "Signed-off-by: Libo Chen " diff --git a/drivers/scsi/a100u2w.c b/drivers/scsi/a100u2w.c old mode

[PATCH 02/24] drivers/scsi/dc395x: Convert to module_pci_driver

2013-05-26 Thread Libo Chen
use module_pci_driver instead of init/exit, make code clean. Signed-off-by: Libo Chen --- drivers/scsi/dc395x.c | 24 +--- 1 files changed, 1 insertions(+), 23 deletions(-) diff --git a/drivers/scsi/dc395x.c b/drivers/scsi/dc395x.c old mode 100644 new mode 100755 index

Re: BUG_ON in virtio-ring.c

2013-05-26 Thread Rusty Russell
Dave Airlie writes: > Hi Rusty, > > current virtio-ring.c has a BUG_ON in virtqueue_add that checks > total_sg > vg->vring.num, however I'm not sure it really is 100% > correct. > > If I have an indirect ring and I'm adding sgs to it and the host is > delayed (say I've got a thread consuming

Re: [PATCH 3/4] KVM: PPC: Add support for IOMMU in-kernel handling

2013-05-26 Thread Alexey Kardashevskiy
On 05/25/2013 12:45 PM, David Gibson wrote: > On Wed, May 22, 2013 at 04:06:57PM -0500, Scott Wood wrote: >> On 05/20/2013 10:06:46 PM, Alexey Kardashevskiy wrote: >>> diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c >>> index 8465c2a..da6bf61 100644 >>> ---

Re: [PATCH 00/25] Convert to module_pci_driver replace init/exit

2013-05-26 Thread Libo Chen
sorry, only 24! On 2013/5/27 10:28, Libo Chen wrote: > use module_pci_driver instead of init/exit, make code clean. > > Libo Chen (25): > drivers/scsi/a100u2w: Convert to module_pci_driver replace init/exit > drivers/scsi/dc395x: Convert to module_pci_driver > drivers/scsi/dmx3191d:

[PATCH 19/24] drivers/media/pci/dm1105/dm1105: Convert to module_pci_driver

2013-05-26 Thread Libo Chen
use module_pci_driver instead of init/exit, make code clean. Signed-off-by: Libo Chen --- drivers/media/pci/dm1105/dm1105.c | 13 + 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/drivers/media/pci/dm1105/dm1105.c b/drivers/media/pci/dm1105/dm1105.c index

[PATCH 18/24] drivers/media/pci/mantis/hopper_cards: Convert to module_pci_driver

2013-05-26 Thread Libo Chen
use module_pci_driver instead of init/exit, make code clean. Signed-off-by: Libo Chen --- drivers/media/pci/mantis/hopper_cards.c | 13 + 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/drivers/media/pci/mantis/hopper_cards.c

[PATCH 13/24] drivers/uwb/whci: Convert to module_pci_driver

2013-05-26 Thread Libo Chen
use module_pci_driver instead of init/exit, make code clean. Signed-off-by: Libo Chen --- drivers/uwb/whci.c | 13 + 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/drivers/uwb/whci.c b/drivers/uwb/whci.c index f48093e..deeeba4 100644 --- a/drivers/uwb/whci.c +++

[PATCH 15/24] drivers/memstick/host/jmb38x_ms: Convert to module_pci_driver

2013-05-26 Thread Libo Chen
use module_pci_driver instead of init/exit, make code clean. Signed-off-by: Libo Chen --- drivers/memstick/host/jmb38x_ms.c | 13 + 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/drivers/memstick/host/jmb38x_ms.c b/drivers/memstick/host/jmb38x_ms.c index

[PATCH 08/24] drivers/atm/he: Convert to module_pci_driver

2013-05-26 Thread Libo Chen
use module_pci_driver instead of init/exit, make code clean. Signed-off-by: Libo Chen --- drivers/atm/he.c | 13 + 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/drivers/atm/he.c b/drivers/atm/he.c index 507362a..80f9743 100644 --- a/drivers/atm/he.c +++

[PATCH 17/24] drivers/media/pci/dm1105/dm1105: Convert to module_pci_driver

2013-05-26 Thread Libo Chen
use module_pci_driver instead of init/exit, make code clean. Signed-off-by: Libo Chen --- drivers/media/pci/b2c2/flexcop-pci.c | 13 + 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/drivers/media/pci/b2c2/flexcop-pci.c b/drivers/media/pci/b2c2/flexcop-pci.c index

[PATCH 21/24] drivers/media/pci/pt1/pt1: Convert to module_pci_driver

2013-05-26 Thread Libo Chen
use module_pci_driver instead of init/exit, make code clean. Signed-off-by: Libo Chen --- drivers/media/pci/pt1/pt1.c | 15 +-- 1 files changed, 1 insertions(+), 14 deletions(-) diff --git a/drivers/media/pci/pt1/pt1.c b/drivers/media/pci/pt1/pt1.c index e921108..75ce142 100644

[PATCH 22/24] drivers/media/radio/radio-maxiradio: Convert to module_pci_driver

2013-05-26 Thread Libo Chen
use module_pci_driver instead of init/exit, make code clean Signed-off-by: Libo Chen --- drivers/media/radio/radio-maxiradio.c | 13 + 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/drivers/media/radio/radio-maxiradio.c b/drivers/media/radio/radio-maxiradio.c

[PATCH 24/24] drivers/pcmcia/yenta_socket: Convert to module_pci_driver

2013-05-26 Thread Libo Chen
use module_pci_driver instead of init/exit, make code clean. Signed-off-by: Libo Chen --- drivers/pcmcia/yenta_socket.c | 16 +--- 1 files changed, 1 insertions(+), 15 deletions(-) diff --git a/drivers/pcmcia/yenta_socket.c b/drivers/pcmcia/yenta_socket.c index 6b4ff09..dc18a3a

[PATCH 20/24] drivers/media/pci/pluto2/pluto2: Convert to module_pci_driver

2013-05-26 Thread Libo Chen
use module_pci_driver instead of init/exit, make code clean. Signed-off-by: Libo Chen --- drivers/media/pci/pluto2/pluto2.c | 13 + 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/drivers/media/pci/pluto2/pluto2.c b/drivers/media/pci/pluto2/pluto2.c index

[PATCH 23/24] drivers/pcmcia/pd6729: Convert to module_pci_driver

2013-05-26 Thread Libo Chen
use module_pci_driver instead of init/exit, make code clean. Signed-off-by: Libo Chen --- drivers/pcmcia/pd6729.c | 13 + 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/drivers/pcmcia/pd6729.c b/drivers/pcmcia/pd6729.c index b29d97e..9a7fc88 100644 ---

[PATCH 14/24] drivers/platform/x86/intel_ips: Convert to module_pci_driver

2013-05-26 Thread Libo Chen
use module_pci_driver instead of init/exit, make code clean. Signed-off-by: Libo Chen --- drivers/platform/x86/intel_ips.c | 13 + 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/drivers/platform/x86/intel_ips.c b/drivers/platform/x86/intel_ips.c index

[PATCH 16/24] drivers/media/pci/mantis/mantis_cards: Convert to module_pci_driver

2013-05-26 Thread Libo Chen
use module_pci_driver instead of init/exit, make code clean Signed-off-by: Libo Chen --- drivers/media/pci/mantis/mantis_cards.c | 13 + 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/drivers/media/pci/mantis/mantis_cards.c

[PATCH 10/24] drivers/mfd/lpc_ich: Convert to module_pci_driver

2013-05-26 Thread Libo Chen
use module_pci_driver instead of init/exit, make code clean. Signed-off-by: Libo Chen --- drivers/mfd/lpc_ich.c | 13 + 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/drivers/mfd/lpc_ich.c b/drivers/mfd/lpc_ich.c index 9f12f91..06431df 100644 ---

[PATCH 11/24] drivers/ptp/ptp_pch: Convert to module_pci_driver

2013-05-26 Thread Libo Chen
use module_pci_driver instead of init/exit, make code clean Signed-off-by: Libo Chen --- drivers/ptp/ptp_pch.c | 18 +- 1 files changed, 1 insertions(+), 17 deletions(-) diff --git a/drivers/ptp/ptp_pch.c b/drivers/ptp/ptp_pch.c index bea9451..e63ca00 100644 ---

[PATCH 04/24] drivers/scsi/initio: Convert to module_pci_driver

2013-05-26 Thread Libo Chen
use module_pci_driver instead of init/exit, make code clean. Signed-off-by: Libo Chen --- drivers/scsi/initio.c | 13 + 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/drivers/scsi/initio.c b/drivers/scsi/initio.c old mode 100644 new mode 100755 index

[PATCH 06/24] drivers/net/irda/donauboe: Convert to module_pci_driver

2013-05-26 Thread Libo Chen
use module_pci_driver instead of init/exit, make code clean. Signed-off-by: Libo Chen --- drivers/net/irda/donauboe.c | 15 +-- 1 files changed, 1 insertions(+), 14 deletions(-) diff --git a/drivers/net/irda/donauboe.c b/drivers/net/irda/donauboe.c old mode 100644 new mode 100755

[PATCH 01/24] drivers/scsi/a100u2w: Convert to module_pci_driver

2013-05-26 Thread Libo Chen
use module_pci_driver instead of init/exit, make code clean. --- drivers/scsi/a100u2w.c | 12 +--- 1 files changed, 1 insertions(+), 11 deletions(-) diff --git a/drivers/scsi/a100u2w.c b/drivers/scsi/a100u2w.c old mode 100644 new mode 100755 index 0163457..db3710f ---

[PATCH 05/24] drivers/scsi/mvumi: Convert to module_pci_driver

2013-05-26 Thread Libo Chen
use module_pci_driver instead of init/exit, make code clean. Signed-off-by: Libo Chen --- drivers/scsi/mvumi.c | 20 +--- 1 files changed, 1 insertions(+), 19 deletions(-) diff --git a/drivers/scsi/mvumi.c b/drivers/scsi/mvumi.c old mode 100644 new mode 100755 index

[PATCH 07/24] drivers/ide/delkin_cb: Convert to module_pci_driver

2013-05-26 Thread Libo Chen
use module_pci_driver instead of init/exit, make code clean. Signed-off-by: Libo Chen --- drivers/ide/delkin_cb.c | 13 + 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/drivers/ide/delkin_cb.c b/drivers/ide/delkin_cb.c index 7e27d32..300daab 100644 ---

[PATCH 09/24] drivers/pci/ioapic: Convert to module_pci_driver

2013-05-26 Thread Libo Chen
use module_pci_driver instead of init/exit, make code clean. Signed-off-by: Libo Chen --- drivers/pci/ioapic.c | 13 + 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/drivers/pci/ioapic.c b/drivers/pci/ioapic.c index 3c6bbdd..1b90579 100644 ---

[PATCH 12/24] drivers/memstick/host/r592: Convert to module_pci_driver

2013-05-26 Thread Libo Chen
use module_pci_driver instead of init/exit, make code clean. Signed-off-by: Libo Chen --- drivers/memstick/host/r592.c | 13 + 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/drivers/memstick/host/r592.c b/drivers/memstick/host/r592.c index 9718661..1b6e913 100644

[PATCH 03/24] drivers/scsi/dmx3191d: Convert to module_pci_driver

2013-05-26 Thread Libo Chen
use module_pci_driver instead of init/exit, make code clean. Signed-off-by: Libo Chen --- drivers/scsi/dmx3191d.c | 13 + 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/drivers/scsi/dmx3191d.c b/drivers/scsi/dmx3191d.c old mode 100644 new mode 100755 index

Re: [PATCH v7 04/11] KVM: MMU: zap pages in batch

2013-05-26 Thread Xiao Guangrong
On 05/25/2013 04:34 AM, Marcelo Tosatti wrote: > On Thu, May 23, 2013 at 03:55:53AM +0800, Xiao Guangrong wrote: >> Zap at lease 10 pages before releasing mmu-lock to reduce the overload >> caused by requiring lock >> >> After the patch, kvm_zap_obsolete_pages can forward progress anyway, >> so

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

2013-05-26 Thread Herbert Xu
On Fri, May 24, 2013 at 05:57:15PM +0800, Herbert Xu wrote: > On Tue, May 21, 2013 at 11:45:48AM +1000, Stephen Rothwell wrote: > > Hi Herbert, > > > > After merging the crypto tree, today's linux-next build (x86_64 > > allmodconfig) failed like this: > > > >

Re: [PATCH v2 2/7] Documentation/devices.txt: Mark /dev/oldmem obsolete

2013-05-26 Thread HATAYAMA Daisuke
(2013/05/27 10:54), Zhang Yanfei wrote: 于 2013年05月27日 09:46, HATAYAMA Daisuke 写道: (2013/05/26 15:36), Zhang Yanfei wrote: From: Zhang Yanfei Signed-off-by: Zhang Yanfei Cc: Dave Jones --- Documentation/devices.txt |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff

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

2013-05-26 Thread Dave Chinner
On Thu, May 23, 2013 at 05:34:23PM -0400, Waiman Long wrote: > On 05/23/2013 05:42 AM, Dave Chinner wrote: > >On Wed, May 22, 2013 at 09:37:25PM -0400, Waiman Long wrote: > >>Change log: > >> > >>v2->v3 > >> - Fix the RCU lock problem found by Al Viro. > >> - Rebase the code to the latest

[PATCH V2] ARM: EXYNOS: add PM dependency to PM_GENERIC_DOMAINS

2013-05-26 Thread Jingoo Han
PM_GENERIC_DOMAINS needs PM dependency. Fixed build warning as below: warning: (PLAT_S3C64XX && CPU_EXYNOS4210) selects PM_GENERIC_DOMAINS which has unmet direct dependencies (PM) warning: (PLAT_S3C64XX && CPU_EXYNOS4210) selects PM_GENERIC_DOMAINS which has unmet direct dependencies (PM)

Re: [PATCH 0/4] ipc/sem.c: Bug fixes, regression fixes, v3

2013-05-26 Thread Greg KH
On Sun, May 26, 2013 at 11:08:51AM +0200, Manfred Spraul wrote: > I've split my patch into 4 parts: > - 1: Fix-missing-wakeups-in-do_smart_update > - 2: seperate-wait-for-zero-and-alter-tasks > - 3: Always-use-only-one-queue-for-alter-operations > - 4: Rename-try_atomic_semop-to-perform_atomic >

Re: [PATCH v7 03/11] KVM: MMU: fast invalidate all pages

2013-05-26 Thread Xiao Guangrong
Hi Marcelo, On 05/25/2013 04:23 AM, Marcelo Tosatti wrote: >> +static void kvm_zap_obsolete_pages(struct kvm *kvm) >> +{ >> +struct kvm_mmu_page *sp, *node; >> +LIST_HEAD(invalid_list); >> + >> +restart: >> +list_for_each_entry_safe_reverse(sp, node, >> +

[PATCH v2] arch: arm64: kernel: sprintf(), 'str' needs additional 1 byte for failure processing

2013-05-26 Thread Chen Gang
When failure occurs at the last looping cycle (when 'i == 0'), it will print "bad PC value" instead of "(%08x) ", which needs additional 1 byte. If not add 1 byte, the 'str' may be memory overflow. Signed-off-by: Chen Gang --- arch/arm64/kernel/traps.c |2 +- 1 files changed, 1

Re: [PATCH v2 2/7] Documentation/devices.txt: Mark /dev/oldmem obsolete

2013-05-26 Thread Zhang Yanfei
于 2013年05月27日 09:46, HATAYAMA Daisuke 写道: > (2013/05/26 15:36), Zhang Yanfei wrote: >> From: Zhang Yanfei >> >> Signed-off-by: Zhang Yanfei >> Cc: Dave Jones >> --- >> Documentation/devices.txt |3 +-- >> 1 files changed, 1 insertions(+), 2 deletions(-) >> >> diff --git

Re: Weird disk idling

2013-05-26 Thread Alexander Holler
Am 26.05.2013 07:29, schrieb Fredrik Tolf: > I'm sure you all know what the various fields are (except the first, Hmm, I had to look at Documentation/block/stat.txt. > which is just a timestamp), so as you can see, there are 135 requests in > the queue, but no reads or writes happen, in this

[PATCH v2] arch: blackfin: kernel: using strlcpy() instead of strncpy()

2013-05-26 Thread Chen Gang
For NULL terminated string, need always be sure of ended by zero. Just use strlcpy() instead of strncpy(). Signed-off-by: Chen Gang --- arch/blackfin/kernel/setup.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/blackfin/kernel/setup.c

Re: [PATCH] arch: blackfin: kernel: using strlcpy instead of strncpy

2013-05-26 Thread Chen Gang
On 05/26/2013 03:04 PM, Chen Gang wrote: > > For NULL terminated string, need always be sure of ended by zero. > > 'command_line' is a static variable which will be initialized > automatically, and cmdline_init() is __init function, so need not > initialize it again, can just use strlcpy instead

Re: [PATCH v8 9/9] vmcore: support mmap() on /proc/vmcore

2013-05-26 Thread HATAYAMA Daisuke
(2013/05/24 18:02), Maxim Uvarov wrote: 2013/5/24 Andrew Morton mailto:a...@linux-foundation.org>> On Thu, 23 May 2013 14:25:48 +0900 HATAYAMA Daisuke mailto:d.hatay...@jp.fujitsu.com>> wrote: > This patch introduces mmap_vmcore(). > > Don't permit writable nor executable

Re: [PATCH 2/2] f2fs: add sysfs support for controlling the gc_thread

2013-05-26 Thread Jaegeuk Kim
Hi Namjae, This is an interesting functionality. Could you describe why and when we need to do this? What are pros and cons? How can we use this? IMO, when users try to control IO latencies, it seems that they can trigger such the explicit GCs, but in order to do that, they also need to know the

Re: [PATCH v2 2/7] Documentation/devices.txt: Mark /dev/oldmem obsolete

2013-05-26 Thread HATAYAMA Daisuke
(2013/05/26 15:36), Zhang Yanfei wrote: From: Zhang Yanfei Signed-off-by: Zhang Yanfei Cc: Dave Jones --- Documentation/devices.txt |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/Documentation/devices.txt b/Documentation/devices.txt index 08f01e7..c8e4002

Re: [PATCH] arch: arm64: kernel: sprintf(), 'str' needs additional 1 byte for failure processing

2013-05-26 Thread Chen Gang
On 05/26/2013 06:28 PM, Chen Gang wrote: > > When failure occurs at the last looping cycle (when 'i == 0'), it will > print "bad PC value" instead of "(%08x) ", which needs additional 1 > byte. > > If not add 1 byte, the str will not be NUL terminated, and the next > printk() will cause issue. >

Re: [PATCH 2/7] Documentation/devices.txt: Remove /dev/oldmem description

2013-05-26 Thread Zhang Yanfei
于 2013年05月27日 09:27, HATAYAMA Daisuke 写道: > (2013/05/26 9:58), Zhang Yanfei wrote: >> 于 2013年05月26日 07:20, Eric W. Biederman 写道: >>> Zhang Yanfei writes: >>> From: Zhang Yanfei >>> >>> Won't we want to keep this reservation around to so that this number >>> doesn't get reused, and cause

Re: [PATCH 2/7] Documentation/devices.txt: Remove /dev/oldmem description

2013-05-26 Thread HATAYAMA Daisuke
(2013/05/26 9:58), Zhang Yanfei wrote: 于 2013年05月26日 07:20, Eric W. Biederman 写道: Zhang Yanfei writes: From: Zhang Yanfei Won't we want to keep this reservation around to so that this number doesn't get reused, and cause people confusion when upgrading/downgrading kernels? Ah, yes. I

Re: [PATCH 3.9-stable] NFSv4.1 Fix a pNFS session draining deadlock

2013-05-26 Thread Myklebust, Trond
On Mon, 2013-05-27 at 09:23 +0900, Jonghwan Choi wrote: > This patch looks like it should be in the 3.9-stable tree, should we apply > it? It's a condition which appears to be extremely rare: so far, we've only seen it during extreme stress testing at NetApp. For that reason, and because it is

[PATCH 3.9-stable] cpufreq / intel_pstate: Add additional supported CPU ID

2013-05-26 Thread Jonghwan Choi
This patch looks like it should be in the 3.9-stable tree, should we apply it? -- From: "Dirk Brandewie " commit c96d53d600643ee0adfd1cb90814bd9510e62b71 upstream Add CPU ID for Ivybrigde processor. Signed-off-by: Dirk Brandewie Signed-off-by: Rafael J. Wysocki

Re: [PATCH 1/1] rtc: rtc-ds1307: use devm_*() functions

2013-05-26 Thread Jingoo Han
On Saturday, May 25, 2013 10:51 AM, Devendra Naga wrote: > On Sat, May 25, 2013 at 10:41 AM, Nikolay Balandin wrote: > > From: Nikolay Balandin [.] > > > > - ds1307->rtc = rtc_device_register(client->name, >dev, > > + ds1307->rtc = devm_rtc_device_register(>dev, client->name, >

linux-next: manual merge of the parisc-hd tree with Linus' tree

2013-05-26 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the parisc-hd tree got conflicts in arch/parisc/include/asm/processor.h and arch/parisc/kernel/irq.c between commit d96b51ec1465 ("parisc: fix irq stack on UP and SMP") from Linus' tree and commit 1c92ce8487f6 ("parisc: use arch_spinlock_t instead of

[PATCH 3.9-stable] NFSv4.1 Fix a pNFS session draining deadlock

2013-05-26 Thread Jonghwan Choi
This patch looks like it should be in the 3.9-stable tree, should we apply it? -- From: "Andy Adamson " commit 774d5f14ee1ecac55f42a84ff35eb00b896b00b6 upstream On a CB_RECALL the callback service thread flushes the inode using filemap_flush prior to scheduling the state

Re: [PATCH v8 3/9] vmcore: treat memory chunks referenced by PT_LOAD program header entries in page-size boundary in vmcore_list

2013-05-26 Thread HATAYAMA Daisuke
(2013/05/24 22:12), Vivek Goyal wrote: On Thu, May 23, 2013 at 02:49:28PM -0700, Andrew Morton wrote: On Thu, 23 May 2013 14:25:13 +0900 HATAYAMA Daisuke wrote: Treat memory chunks referenced by PT_LOAD program header entries in page-size boundary in vmcore_list. Formally, for each range

Re: Adding fscache branch to linux-next

2013-05-26 Thread Stephen Rothwell
Hi David, On Thu, 23 May 2013 16:20:28 +0100 David Howells wrote: > > Can you add: > > > http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=fscache Please use git URL's when talking about git trees. > To linux-next please? Added

Linux 3.10-rc3

2013-05-26 Thread Linus Torvalds
Another week, another rc. A *big* one. I'm not thrilled about it, and -rc3 is much bigger than -rc2 was, although there isn't anything particularly scary that stands out. Just a lot of small details. A number of people apparently missed rc2, and then made rc3. Oh, well. I can pretty much

[PATCH v4 3/3] mm/hugetlb: remove hugetlb_prefault

2013-05-26 Thread Wanpeng Li
Changelog: v1 -> v2: * add Michal reviewed-by hugetlb_prefault are not used any more, this patch remove it. Reviewed-by: Michal Hocko Signed-off-by: Wanpeng Li --- include/linux/hugetlb.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/hugetlb.h

[PATCH v4 1/3] mm/hugetlb: use already exist interface huge_page_shift

2013-05-26 Thread Wanpeng Li
Changelog: v1 -> v2: * update alloc_bootmem_huge_page in powerpc * add Michal reviewed-by Use already exist interface huge_page_shift instead of h->order + PAGE_SHIFT. Reviewed-by: Michal Hocko Signed-off-by: Wanpeng Li --- arch/powerpc/mm/hugetlbpage.c | 2 +- mm/hugetlb.c

[PATCH v4 2/3] mm/pageblock: remove get/set_pageblock_flags

2013-05-26 Thread Wanpeng Li
Changelog: v1 -> v2: * add Michal reviewed-by get_pageblock_flags and set_pageblock_flags are not used any more, this patch remove them. Reviewed-by: Michal Hocko Signed-off-by: Wanpeng Li --- include/linux/pageblock-flags.h | 6 -- 1 file changed, 6 deletions(-) diff --git

Re: [RFC] Add co-maintainer for fbdev

2013-05-26 Thread Florian Tobias Schandinat
Hi Jean-Christophe, On 05/24/2013 06:56 PM, Arnd Bergmann wrote: > On Friday 24 May 2013, Olof Johansson wrote: >> [+akpm] > > [+florian] Thanks for CC'ing me. Lately I got dropped frequently from the mailinglist (after 1 or 2 days). Guess I should try subscribing via my own mail server. >> On

Re: [PATCH 00/14] misc/ep93xx_pwm: cleanup driver for conversion to PWM framework

2013-05-26 Thread Ryan Mallon
On 25/05/13 09:19, H Hartley Sweeten wrote: > This driver needs to be converted to the new PWM framework. > > Before converting it clean up all the cruft, > > H Hartley Sweeten (14): > misc/ep93xx_pwm: use managed device resources > misc/ep93xx_pwm: use {read,write}* instead of __raw_*

Re: [PATCH 0/4] ipc/sem.c: Bug fixes, regression fixes, v3

2013-05-26 Thread Linus Torvalds
On Sun, May 26, 2013 at 1:50 PM, Davidlohr Bueso wrote: > > In lack of getting my swingbench DSS environment back, I ran these > changes against the semop-multi program on my laptop. For 256 threads, > with Manfred's patchset the ops/sec suffers around -7.3%. Hmm. That test program only tests

Re: How to get driver_data of struct ieee1394_device_id in kernel driver module?

2013-05-26 Thread Greg Kroah-Hartman
On Sun, May 26, 2013 at 11:35:13PM +0200, Stefan Richter wrote: > I think your approach is sensible. There is of course just the little > problem that firewire-core keeps the matching device_id table entry as a > secret to itself. Therefore, struct ieee1394_device_id.driver_data is > currently

Re: How to get driver_data of struct ieee1394_device_id in kernel driver module?

2013-05-26 Thread Stefan Richter
On May 26 Stefan Richter wrote: > (Adding LKML and Greg KH, in case that there are general opinions about > how a bus_type should work.) > > On May 26 Takashi Sakamoto wrote: > > Hi all, > > > > I'm a newbile for Linux Firewire subsystem and not used to IEEE 1394 bus > > programing in Linux. > >

Re: [PATCH v2 1/1] uio.c: solve memory leak

2013-05-26 Thread Cong Ding
On Thu, Apr 25, 2013 at 12:19 PM, Cong Ding wrote: > On Thu, Feb 14, 2013 at 12:43:15PM +0100, Cong Ding wrote: >> On Sun, Jan 20, 2013 at 10:01:41PM +0100, Hans J. Koch wrote: >> > On Fri, Jan 18, 2013 at 02:00:50PM -0800, Greg Kroah-Hartman wrote: >> > > On Fri, Jan 18, 2013 at 10:05:45PM

Re: [patch v2 3/6] mm/memory_hotplug: Disable memory hotremove for 32bit

2013-05-26 Thread KOSAKI Motohiro
(5/26/13 2:09 PM), Michal Hocko wrote: > On Sun 26-05-13 07:58:42, KOSAKI Motohiro wrote: As KOSAKI Motohiro mentioned, memory hotplug don't support 32bit since it was born, >>> >>> Why? any reference? This reasoning is really weak. >> >> I have no seen any highmem support in memory

Re: [Patch v1] skbuff: Hide GFP_ATOMIC page allocation failures for dropped packets

2013-05-26 Thread Joe Perches
On Sun, 2013-05-26 at 20:28 +0400, Sergei Shtylyov wrote: > On 26-05-2013 17:17, atom...@redhat.com wrote: > > Failed GFP_ATOMIC allocations by the network stack result in dropped > > packets, which will be received on a subsequent retransmit, and an > > unnecessary, noisy warning with a kernel

securebits: add exec_inherit flag to prevent changes to process credentials during execve

2013-05-26 Thread Stephen Mell
From: Stephen Mell Currently, it is nearly impossible to give a capability to a non-root user that will stick around after the first execve. This patch adds a new securebit, exec_inherit, which causes all credential modification logic to be skipped. This is already possible, in a hackish

Re: [PATCH 1/7] posix-cpu-timers: don't account cpu timer after stopped thread runtime accounting

2013-05-26 Thread KOSAKI Motohiro
(5/7/13 11:24 AM), Frederic Weisbecker wrote: > 2013/5/7 KOSAKI Motohiro : + /* + * After turning over se.sum_exec_runtime to sig->sum_sched_runtime + * in __exit_signal(), we must not account exec_runtime for consistency. + */ + if

[PATCH 8/8] posix-cpu-timers: fix cputimer initialization mistake for {u,s}time

2013-05-26 Thread kosaki . motohiro
From: KOSAKI Motohiro When using CPUCLOCK_VIRT or CPUCLOCK_PROF, we need to round an expire up because jiffies based accounting may point to one jiffy behind at maximum. So, current code lead to wake up posix timer too early. This patch adds one jiffy at timer initialization. itimer already has

[PATCH 7/8] posix-cpu-timers: cleanup cpu_{clock,timer}_sample{,_group}

2013-05-26 Thread kosaki . motohiro
From: KOSAKI Motohiro Now we have four similar timer related functions, cpu_clock_sample(), cpu_clock_sample_group(), cpu_timer_sample() and cpu_timer_sample_group(). For readability, make do_cpu_clock_timer_sample() and thread_cputime() helper functions and all *_sample functions use these.

[PATCH 5/8] posix-cpu-timers: check_thread_timers() uses task_sched_runtime()

2013-05-26 Thread kosaki . motohiro
From: KOSAKI Motohiro A type of tsk->se.sum_exec_runtime is u64. Thus, reading it is racy when running 32bit. We should use task_sched_runtime(). Cc: Olivier Langlois Cc: Thomas Gleixner Cc: Frederic Weisbecker Cc: Ingo Molnar Acked-by: Peter Zijlstra Signed-off-by: KOSAKI Motohiro ---

[PATCH 6/8] sched: task_sched_runtime introduce micro optimization

2013-05-26 Thread kosaki . motohiro
From: KOSAKI Motohiro rq lock in task_sched_runtime() is necessary for two reasons. 1) accessing se.sum_exec_runtime is not atomic on 32bit and 2) do_task_delta_exec() require it. So, 64bit can avoid holding rq lock when add_delta is false and delta_exec is 0. Cc: Olivier Langlois Cc: Thomas

[PATCH 4/8] posix-cpu-timers: timer functions should use timer time instead of clock time

2013-05-26 Thread kosaki . motohiro
From: KOSAKI Motohiro For process timers, we use cpu_clock_sample_group() and cpu_timer_sample_group() correctly. However, for thread timers, we always use cpu_clock_sample(). This is wrong because a cpu_clock_sample() accounts uncommitted delta_exec too. And this is inconsistent against

[PATCH 3/8] posix-cpu-timers: fix wrong timer initialization

2013-05-26 Thread kosaki . motohiro
From: KOSAKI Motohiro Currently glibc's rt/tst-cputimer1 testcase sporadically fails because a timer created by timer_create() may fire earlier than specified. posix_cpu_timer_set() uses "val" as current time for three purpose. 1) initialize sig->cputimer. 2) calculation "old" val. 3)

[PATCH 2/8] posix-cpu-timers: fix acounting delta_exec twice

2013-05-26 Thread kosaki . motohiro
From: KOSAKI Motohiro Currently glibc rt/tst-cpuclock2 test(*) sporadically fails because scheduler delta can be accounted twice from thread_group_cputimer() and account_group_exec_runtime(). Finally, clock_nanosleep() wakes up earlier than an argument. This is posix violation. This issue was

[PATCH 2/8] posix-cpu-timers: fix acounting delta_exec twice

2013-05-26 Thread kosaki . motohiro
From: KOSAKI Motohiro Currently glibc rt/tst-cpuclock2 test(*) sporadically fails because scheduler delta can be accounted twice from thread_group_cputimer() and account_group_exec_runtime(). Finally, clock_nanosleep() wakes up before an argument. This is posix violation. This issue was

[PATCH 1/8] posix-cpu-timers: don't account cpu timer after stopped thread runtime accounting

2013-05-26 Thread kosaki . motohiro
From: KOSAKI Motohiro When tsk->signal->cputimer->running is 1, signal->cputimer (i.e. per process timer account) and tsk->sum_sched_runtime (i.e. per thread timer account) increase at the same pace because update_curr() increases both accounting. However, there is one exception. When thread

Re: How to get driver_data of struct ieee1394_device_id in kernel driver module?

2013-05-26 Thread Stefan Richter
(Adding LKML and Greg KH, in case that there are general opinions about how a bus_type should work.) On May 26 Takashi Sakamoto wrote: > Hi all, > > I'm a newbile for Linux Firewire subsystem and not used to IEEE 1394 bus > programing in Linux. > So I happy to get your advices. > > Currently

[PATCH v5 0/8] posix timers fixlet

2013-05-26 Thread kosaki . motohiro
From: KOSAKI Motohiro Glibc's posix timer testcase found a lot of bugs in posix timer code. This series, hopefully, fixes all of them. All patches are independent each other logically. Changes from v4 - [1/8] comments colarification, fix account_group_{user_system}_time too. - [8/8] added

Re: [RFC PATCHv4 0/6] arm: Initial TI-Nspire support

2013-05-26 Thread Arnd Bergmann
On Saturday 25 May 2013, Daniel Tang wrote: > Changes between v3 and v4: > * Remove redundant clock-names in device tree > * Re-enable bus access to some peripherals on bootup > * Clean up nspire-classic-timer code. > - Implement a nspire_timer_set_mode function > - Removed messy IO_MATCHx and

Re: [PATCH 06/13] pwm: pwm-mxs: Let device core handle pinctrl

2013-05-26 Thread Thierry Reding
On Sun, May 26, 2013 at 06:02:16PM -0300, Fabio Estevam wrote: > Hi Thierry, > > On Mon, May 6, 2013 at 3:05 PM, Fabio Estevam > wrote: > > Since commit ab78029 (drivers/pinctrl: grab default handles from device > > core), > > we can rely on device core for handling pinctrl. > > > > So remove

Re: [PATCH 06/13] pwm: pwm-mxs: Let device core handle pinctrl

2013-05-26 Thread Fabio Estevam
Hi Thierry, On Mon, May 6, 2013 at 3:05 PM, Fabio Estevam wrote: > Since commit ab78029 (drivers/pinctrl: grab default handles from device core), > we can rely on device core for handling pinctrl. > > So remove devm_pinctrl_get_select_default() from the driver. > > Cc: Thierry Reding > Cc: >

  1   2   3   4   5   6   >