Re: [PATCH] OMAP GPIO - don't wake from suspend unless requested.

2012-09-03 Thread Shilimkar, Santosh
On Sun, Aug 26, 2012 at 6:29 PM, Shilimkar, Santosh wrote: > On Sun, Aug 26, 2012 at 3:53 PM, NeilBrown wrote: >> >> On Sun, 26 Aug 2012 09:47:50 +0530 "Shilimkar, Santosh" >> wrote: >> >> > + Jon, >> > >> > On Sat, Aug 25, 2012 at 5:14 PM, NeilBrown wrote: >> > > >> > > >> > > >> > > Current

[RFC] module: signature infrastructure

2012-09-03 Thread Rusty Russell
OK, I took a look at the module.c parts of David and Dmitry's patchsets, and didn't really like either, but I stole parts of David's to make this. So, here's the module.c part of module signing. I hope you two got time to discuss the signature format details? Mimi suggested a scheme where the

Re: [RFC v2 4/7] modsig: add integrity_module_check hook

2012-09-03 Thread Rusty Russell
Dmitry Kasatkin writes: > +#else > +static inline int integrity_module_check(const void *buf, unsigned long len) > +{ > + return 0; > +} > +#endif ... > + err = integrity_module_check(hdr, len); > + if (err < 0) > + goto free_hdr; > + > + /* cut signature tail */ > +

Re: Re: [PATCH] extcon-max8997: remove usage of ret in max8997_muic_handle_charger_type_detach

2012-09-03 Thread MyungJoo Ham
> any comments ? > Sorry for replying late. It has been applied to the extcon-for-next tree at http://git.infradead.org/users/kmpark/linux-samsung/shortlog/refs/heads/extcon-for-next , which will appear in hours. > On Wed, Aug 15, 2012 at 12:19 PM, Devendra Naga > wrote: > > actually we can

Re: [RFC/PATCH] mmc: core: Add support for idle time BKOPs

2012-09-03 Thread merez
On Thu, August 30, 2012 12:36 am, Jaehoon Chung wrote: > On 08/05/2012 10:08 PM, Maya Erez wrote: >> When the mmcqd thread is idle, a delayed work is created to check the >> need for BKOPs. The time to start the delayed work is calculated based >> on the host controller suspend timeout, in case

[PATCH v4] media: v4l2-ctrls: add control for dpcm predictor

2012-09-03 Thread Prabhakar Lad
From: Lad, Prabhakar add V4L2_CID_DPCM_PREDICTOR control of type menu, which determines the dpcm predictor. The predictor can be either simple or advanced. Signed-off-by: Lad, Prabhakar Signed-off-by: Manjunath Hadli Acked-by: Hans Verkuil Reviewed-by: Sylwester Nawrocki Cc: Sakari Ailus

Re: linux-next: build warnings after merge of the drm tree

2012-09-03 Thread Guenter Roeck
On Tue, Sep 04, 2012 at 01:58:29PM +1000, Stephen Rothwell wrote: > Hi Dave, > > After merging the drm tree, today's linux-next build (powerpc > ppc64_defconfig) produced these warnings: > > drivers/gpu/drm/udl/Kconfig:1:error: recursive dependency detected! > drivers/gpu/drm/udl/Kconfig:1:

Re: [PATCH] media: v4l2-ctrls: add control for test pattern

2012-09-03 Thread Prabhakar Lad
Hi Sakari, Thanks for the review. On Tuesday 04 September 2012 01:09 AM, Sakari Ailus wrote: > Hi Prabhakar, > > Thanks for the patch. > > On Mon, Sep 03, 2012 at 02:46:17PM +0530, Prabhakar Lad wrote: >> From: Lad, Prabhakar >> >> add V4L2_CID_TEST_PATTERN of type menu, which determines >>

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

2012-09-03 Thread Stephen Rothwell
Hi Alexander, Today's linux-next merge of the kvm-ppc tree got a conflict in include/linux/kvm.h between commit 4d8b81abc47b ("KVM: introduce readonly memslot") from the kvm tree and commit 1db21d25a11b ("KVM: PPC: booke: Add watchdog emulation") from the kvm-ppc tree. I fixed it up (see below)

[v3 1/1] driver-core: Shut up dev_dbg_reatelimited() without DEBUG

2012-09-03 Thread Hiroshi Doyu
dev_dbg_reatelimited() without DEBUG printed "217078 callbacks suppressed". This shouldn't print anything without DEBUG. With CONFIG_DYNAMIC_DEBUG, the print should be configured as expected. Signed-off-by: Hiroshi Doyu Reported-by: Hin-Tak Leung Tested-by: Antti Palosaari Tested-by: Hin-Tak

Re: [PATCH v7 2/3] KVM: x86: trace mmio begin and complete

2012-09-03 Thread Xiao Guangrong
On 09/03/2012 07:07 PM, Avi Kivity wrote: > On 08/27/2012 12:51 PM, Dong Hao wrote: >> From: Xiao Guangrong >> >> 'perf kvm stat record/report' will use kvm_exit and kvm_mmio(read...) to >> calculate mmio read emulated time for the old kernel, in order to trace >> mmio read event more exactly, we

linux-next: build warnings after merge of the drm tree

2012-09-03 Thread Stephen Rothwell
Hi Dave, After merging the drm tree, today's linux-next build (powerpc ppc64_defconfig) produced these warnings: drivers/gpu/drm/udl/Kconfig:1:error: recursive dependency detected! drivers/gpu/drm/udl/Kconfig:1: symbol DRM_UDL depends on USB_ARCH_HAS_HCD drivers/usb/Kconfig:76: symbol

Re: [PATCH v7 1/3] KVM: x86: export svm/vmx exit code and vector code to userspace

2012-09-03 Thread Xiao Guangrong
On 09/03/2012 07:13 PM, Avi Kivity wrote: > On 08/27/2012 12:51 PM, Dong Hao wrote: >> From: Xiao Guangrong >> >> Exporting KVM exit information to userspace to be consumed by perf. >> >> [ Dong Hao : rebase it on acme's git tree ] >> Signed-off-by: Xiao Guangrong >> Signed-off-by: Dong Hao >>

Re: [RFC v8 PATCH 13/20] memory-hotplug: check page type in get_page_bootmem

2012-09-03 Thread Wen Congyang
Hi, isimatu-san At 09/01/2012 05:30 AM, Andrew Morton Wrote: > On Tue, 28 Aug 2012 18:00:20 +0800 > we...@cn.fujitsu.com wrote: > >> From: Yasuaki Ishimatsu >> >> There is a possibility that get_page_bootmem() is called to the same page >> many >> times. So when get_page_bootmem is called to

[PATCH v5 1/4] mfd: add syscon driver based on regmap

2012-09-03 Thread Dong Aisheng
From: Dong Aisheng Add regmap based syscon driver. This is usually used for access misc bits in registers which does not belong to a specific module, for example, IMX IOMUXC GPR and ANATOP. With this driver, client can use generic regmap API to access registers which are registered into syscon.

[PATCH v5 0/4] add syscon driver based on regmap for general registers access

2012-09-03 Thread Dong Aisheng
This patch series mainly adds an syscon driver which is used to access general system controller registers like FSL IOMUXC GPR and ANATOP, after that, we convert all the exist private access general registers code to use standard API from regmap to access registers. Finally we remove the old mfd

[PATCH v5 3/4] regulator: anatop-regulator: convert to use syscon to access anatop register

2012-09-03 Thread Dong Aisheng
From: Dong Aisheng Using syscon to access anatop register. Acked-by: Mark Brown Acked-by: Stephen Warren Signed-off-by: Dong Aisheng --- ChangeLog v4->v5: * merge patch 3,4,5,6 to avoid break bisect. ChangeLog v2->v3: * update to use syscon_node_to_regmap and use of_get_parent to get

[PATCH v5 4/4] mfd: anatop-mfd: remove anatop driver

2012-09-03 Thread Dong Aisheng
From: Dong Aisheng The anatop registers are accessed via syscon now, no one will use mfd anatop driver anymore, remove it. Acked-by: Stephen Warren Signed-off-by: Dong Aisheng --- drivers/mfd/Kconfig|8 --- drivers/mfd/Makefile |1 - drivers/mfd/anatop-mfd.c | 124

[PATCH v5 2/4] ARM: imx6q: add iomuxc gpr support into syscon

2012-09-03 Thread Dong Aisheng
From: Dong Aisheng Include headfile for easy using. Acked-by: Stephen Warren Signed-off-by: Dong Aisheng --- ChangeLog v4-v5: * renamed: include/linux/fsl/imx6q-iomuxc-gpr.h -> include/linux/mfd/syscon/imx6q-iomuxc-gpr.h * a minor typo fix --- arch/arm/boot/dts/imx6q.dtsi

Re: [PATCH v7 9/9] block: Avoid deadlocks with bio allocation by stacking drivers

2012-09-03 Thread Kent Overstreet
On Mon, Sep 03, 2012 at 04:41:37PM -0400, Mikulas Patocka wrote: > ... or another possibility - start a timer when something is put to > current->bio_list and use that timer to pop entries off current->bio_list > and submit them to a workqueue. The timer can be cpu-local so only > interrupt

Re: western digital caviar black. EXT4-fs error

2012-09-03 Thread Theodore Ts'o
On Sat, Sep 01, 2012 at 11:48:17PM +0400, Azat Khuzhin wrote: > Recently I update my HDD on desktop machine, and bought WD Caviar Black. > But after I format & copy information to it (using dd), and fix > partitions size: I have next errors in kern.log: > > Aug 28 01:49:03 home-spb kernel:

linux-next: manual merge of the v4l-dvb tree with the arm tree

2012-09-03 Thread Stephen Rothwell
Hi Mauro, Today's linux-next merge of the v4l-dvb tree got a conflict in arch/arm/mach-imx/mach-imx27_visstrim_m10.c between commit 895576427dca ("ARM: iMX: visstrim_m10: use arm_memblock_steal") from the arm tree and commit b6c14dc29757 ("[media] Visstrim M10: Add support for Coda") from the

Subject: [PATCH 1/1] drivers/md/raid1.c: fix NULL pointer bug in fix_read_error function

2012-09-03 Thread hank
>From 0ba5879082544dc3aa13807087563b1258124b1e Mon Sep 17 00:00:00 2001 From: hank Date: Tue, 4 Sep 2012 10:23:45 +0800 Subject: [PATCH 1/1] drivers/md/raid1.c: fix NULL pointer bug in fix_read_error function in fix_read_error function, the conf->mirrors[read_disk].rdev may become NULL, as in

Re: [RFC PATCH] [media] rc: filter out not allowed protocols when decoding

2012-09-03 Thread Changbin Du
> > mutex_lock(_raw_handler_lock); > > - list_for_each_entry(handler, _raw_handler_list, list) > > - handler->decode(raw->dev, ev); > > + list_for_each_entry(handler, _raw_handler_list, list) { > > + /* use all protocol

Re: [PATCH 1/3] proc: return -ENOMEM when inode allocation failed

2012-09-03 Thread Cong Wang
On 09/03/2012 10:14 PM, yan wrote: Signed-off-by: yan Please provide a changelog to explain why we need this patch. --- fs/proc/generic.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/proc/generic.c b/fs/proc/generic.c index b3647fe..9e8f631 100644 ---

Re: [PATCH v2 1/2] hw_random: mxc-rnga: Adapt clocks to new i.mx clock framework

2012-09-03 Thread Herbert Xu
On Mon, Sep 03, 2012 at 06:08:45PM -0300, Fabio Estevam wrote: > Herbert, > > On Fri, Aug 3, 2012 at 12:10 PM, Fabio Estevam wrote: > > Hi Herbert, > > > > On Tue, Jul 31, 2012 at 3:40 AM, Sascha Hauer > > wrote: > >> On Fri, Jul 27, 2012 at 01:47:51PM -0300, Fabio Estevam wrote: > >>> Adapt

Re: [PATCH -v2 13/13] x86, 64bit: Map first 1M ram early before memblock_x86_fill()

2012-09-03 Thread Yinghai Lu
On Mon, Sep 3, 2012 at 12:18 AM, Yinghai Lu wrote: > On Sun, Sep 2, 2012 at 11:26 PM, Pekka Enberg wrote: >> >> Yup, or move the globals together with the comment to arch/x86/mm/init.c. >> >> That said, max_pfn_high_mapped really ought to be kept together with >> the other "pfn_mapped" globals

Re: [PATCH 5/5] virtio-scsi: introduce multiqueue support

2012-09-03 Thread Nicholas A. Bellinger
On Tue, 2012-08-28 at 13:54 +0200, Paolo Bonzini wrote: > This patch adds queue steering to virtio-scsi. When a target is sent > multiple requests, we always drive them to the same queue so that FIFO > processing order is kept. However, if a target was idle, we can choose > a queue arbitrarily.

Re: [PATCH 5/7] perf ui/browser: Add a browser for perf script

2012-09-03 Thread Namhyung Kim
On Mon, 3 Sep 2012 16:14:31 +0800, Feng Tang wrote: > Create a script browser, so that user can check all the available > scripts and run them inside the main perf report or annotation > browsers, for all the perf samples or samples belong to one > thread/symbol. > > The work flow is, users can

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

2012-09-03 Thread Stephen Rothwell
Hi Bjorn, Today's linux-next merge of the pci tree got a conflict in drivers/rapidio/devices/tsi721.c between commit 9a9a9a7adafe ("rapidio/tsi721: fix unused variable compiler warning") from Linus' tree and commit 5cdaaf8a11ba ("rapdio/tsi721: Use PCI Express Capability accessors") from the pci

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

2012-09-03 Thread Stephen Rothwell
Hi Bjorn, Today's linux-next merge of the pci tree got a conflict in drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c between commit 8eee694c3e66 ("bnx2x: fix unload previous driver flow when flr-capable") from Linus' tree and commit 2a80eebcbf3e ("bnx2x: Use PCI Express Capability accessors")

Re: [PATCH 4/7] perf scripts: Export a find_scripts() function

2012-09-03 Thread Namhyung Kim
On Mon, 3 Sep 2012 16:14:30 +0800, Feng Tang wrote: > So that other perf commands/browser has a way to dig out the available > scripts info in system, this is a preparation for the script browser. > > Signed-off-by: Feng Tang > --- > tools/perf/builtin-script.c | 46 >

Re: [PATCH] Fix incorrect memset in bnx2fc_parse_fcp_rsp

2012-09-03 Thread Bhanu Prakash Gollapudi
On 9/3/2012 11:50 AM, Andi Kleen wrote: gcc 4.8 warns because the memset only clears sizeof(char *) bytes, not the whole buffer. Use the correct buffer size and clear the whole sense buffer. /backup/lsrc/git/linux-lto-2.6/drivers/scsi/bnx2fc/bnx2fc_io.c: In function 'bnx2fc_parse_fcp_rsp':

Re: [PATCH] Staging: bcm: fix possible memory leak in bcm_char_ioctl()

2012-09-03 Thread Kevin McKinney
On Mon, Sep 03, 2012 at 06:02:23PM +0800, Wei Yongjun wrote: > From: Wei Yongjun > > psFwInfo has been allocated in this function and should be > freed before leaving from the error handling cases. > > spatch with a semantic match is used to found this problem. > (http://coccinelle.lip6.fr/) >

Re: [PATCH 4/7] perf scripts: Export a find_scripts() function

2012-09-03 Thread Namhyung Kim
On Mon, 3 Sep 2012 16:14:30 +0800, Feng Tang wrote: > So that other perf commands/browser has a way to dig out the available > scripts info in system, this is a preparation for the script browser. > > Signed-off-by: Feng Tang > --- > tools/perf/builtin-script.c | 46 >

Re: [PATCH v3 0/4] Add device tree support for on-chip SRAM

2012-09-03 Thread Shawn Guo
On Mon, Sep 03, 2012 at 06:02:04PM +0200, Philipp Zabel wrote: > Changes since v2, as per Shawn's suggestions: > - Moved struct device_node declaration out of #ifdef CONFIG_OF. > - Simplified of_get_named_gen_pool using of_parse_phandle and >of_address_to_resource. > - Return -EADDRNOTAVAIL

Re: Two question about kernel global function declaration and directory layout

2012-09-03 Thread Ryan Mallon
On 04/09/12 01:32, daley wrote: > hi, everyone, I'm a big fan of the kernel, I was always being attracted > by its clean and intelligent design. I'm new to the mailing list and > this is my first post. I want to ask two basic question about kernel > which bother me a lot, I've googled a lot but

Re: [PATCH 0/7] perf ui/browser: Add browser for perf script

2012-09-03 Thread Namhyung Kim
Hi, Feng On Mon, 3 Sep 2012 16:14:26 +0800, Feng Tang wrote: > Hi Arnaldo and all, > > This is a patch set mainly to add a browser for perf script, which > will be integrated into the main hists and annotation browser. > > Patch 1-4 are some preparation for adding the script > patch 5 introduce

[PATCH] tools: Fix pthread flag for Makefile of trace-agent used by virtio-trace

2012-09-03 Thread Yoshihiro YUNOMAE
pthread flag should not be -lpthread but -pthread using gcc. The -lpthread links the external multithread library. On the other hand, the -pthread manages both the gcc's preprocessor and linker to be able to compile with pthread. Signed-off-by: Yoshihiro YUNOMAE ---

Re: [PATCH 3/3] proc: use kzalloc instead of kmalloc and memset

2012-09-03 Thread Ryan Mallon
On 04/09/12 00:14, yan wrote: > Signed-off-by: yan > --- > fs/proc/generic.c |3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/fs/proc/generic.c b/fs/proc/generic.c > index 9e8f631..38de015 100644 > --- a/fs/proc/generic.c > +++ b/fs/proc/generic.c > @@ -616,10

Re: [PATCH 1/3] proc: return -ENOMEM when inode allocation failed

2012-09-03 Thread Ryan Mallon
On 04/09/12 00:14, yan wrote: > Signed-off-by: yan > --- > fs/proc/generic.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/proc/generic.c b/fs/proc/generic.c > index b3647fe..9e8f631 100644 > --- a/fs/proc/generic.c > +++ b/fs/proc/generic.c > @@ -427,7 +427,7

Re: [PATCH 5/5] scripts/checkincludes.pl: Replace tabs with spaces

2012-09-03 Thread Cruz Julian Bishop
My bad, misread the documentation files. I'll resubmit without this On Tue, 2012-09-04 at 08:20 +1000, Cruz Julian Bishop wrote: > This is required by the CodingStyle kernel documentation file > > Signed-off-by: Cruz Julian Bishop > --- > scripts/checkincludes.pl | 122 >

陈钦键

2012-09-03 Thread yllzrkrhe
┏━┯━┯━┯━┯━┓ ┃Q│ │1│低│优┃ ┃Q│联│3│,│惠┃ ┃:│系│6│先│开┃ ┃9│ │6│验│具┃ ┃5│人│2│证│企┃ ┃8│:│6│后│业┃ ┃8│ │0│付│发┃ ┃1│王│7│款│票┃ ┃1│︵│7│!│,┃ ┃6│先│4│手│收┃ ┃3│生│8│机│费┃ ┃9│︶│ │:│较┃ ┗━┷━┷━┷━┷━┛

Re: [PATCH 2/5] scripts/checkincludes.pl: Simplify and shorten argument logic

2012-09-03 Thread Cruz Julian Bishop
In my last submission, Joe Perches (is that right?) suggested using a function that is built in to Perl. I haven't had a chance to test it yet, but if it turns out to be okay, I'll make a separate merge request at a later date. On Tue, 2012-09-04 at 08:20 +1000, Cruz Julian Bishop wrote: > This

RE: [PATCH] gpio:clk: preparation for switch to common clock framework

2012-09-03 Thread Karicheri, Muralidharan
>> -Original Message- >> From: Linus Walleij [mailto:linus.wall...@linaro.org] >> Sent: Friday, August 31, 2012 7:14 PM >> To: Karicheri, Muralidharan; Hilman, Kevin; Nori, Sekhar >> Cc: grant.lik...@secretlab.ca; linux-kernel@vger.kernel.org; >> mturque...@linaro.org >> Subject: Re:

Re: [PATCHv2] tty: Added a CONFIG_TTY option to allow removal of TTY

2012-09-03 Thread Joe Millenbach
On Mon, Sep 3, 2012 at 2:45 PM, Jiri Slaby wrote: > On 09/03/2012 11:24 PM, Joe Millenbach wrote: >> I do not have a Power PC system to test on > > Neither do I. But that is no excuse to break it. There are > cross-compilers for instance. True. I was not saying I should leave it, only why I did

Re: HDD problem, software bug, bios bug, or hardware ?

2012-09-03 Thread Adko Branil
> But now an interrupt occurs during the hard >reset, and pdc_interrupt also has to take the host lock. I have 4 sata connectors on the motherboard - http://www.hardwareheaven.com/reviews/asusA8V/ If i understand right, just 2 of them are linked to promise controller. Well i changed the

Re: [PATCHv2] tty: Added a CONFIG_TTY option to allow removal of TTY

2012-09-03 Thread Jiri Slaby
On 09/03/2012 11:24 PM, Joe Millenbach wrote: > I do not have a Power PC system to test on Neither do I. But that is no excuse to break it. There are cross-compilers for instance. > so during my testing I did > not notice that option would need TTY also. Thanks for pointing that > out. Before

[PATCH] ACPI: Enable SCI_EMULATE to manually simulate physical hotplug testing.

2012-09-03 Thread Yinghai Lu
From: Ashok Raj Emulate an ACPI SCI interrupt to emulate a hot-plug event. Useful for testing ACPI based hot-plug on systems that don't have the necessary firmware support. Enable CONFIG_ACPI_SCI_EMULATE on kernel compile. Now you will notice /sys/kernel/debug/acpi/sci_notify when new kernel

Re: [PATCHv2] tty: Added a CONFIG_TTY option to allow removal of TTY

2012-09-03 Thread Joe Millenbach
On Mon, Sep 3, 2012 at 2:15 PM, Jiri Slaby wrote: > > On 09/03/2012 02:44 AM, Joe Millenbach wrote: > > The option allows you to remove TTY and compile without errors. This > > saves space on systems that won't support TTY interfaces anyway. > > bloat-o-meter output is below. > ... > > ---

Re: [PATCHv2] tty: Added a CONFIG_TTY option to allow removal of TTY

2012-09-03 Thread Jiri Slaby
On 09/03/2012 02:44 AM, Joe Millenbach wrote: > The option allows you to remove TTY and compile without errors. This > saves space on systems that won't support TTY interfaces anyway. > bloat-o-meter output is below. ... > --- a/drivers/tty/Kconfig > +++ b/drivers/tty/Kconfig > @@ -1,3 +1,14 @@ >

Re: [PATCH v2 1/2] hw_random: mxc-rnga: Adapt clocks to new i.mx clock framework

2012-09-03 Thread Fabio Estevam
Herbert, On Fri, Aug 3, 2012 at 12:10 PM, Fabio Estevam wrote: > Hi Herbert, > > On Tue, Jul 31, 2012 at 3:40 AM, Sascha Hauer wrote: >> On Fri, Jul 27, 2012 at 01:47:51PM -0300, Fabio Estevam wrote: >>> Adapt clocks to the new i.mx clock framework and fix the following warning: >>> >>> Cc:

Re: [PATCH 11/13] perf tools: replace mempcpy with memcpy

2012-09-03 Thread Irina Tirdea
On Mon, Sep 3, 2012 at 4:09 AM, Namhyung Kim wrote: > On Wed, 29 Aug 2012 01:22:16 +0300, Irina Tirdea wrote: >> mempcpy is not supported by bionic in Android >> and will lead to compilation errors. >> >> Replacing mempcpy with memcpy so it will work in Android. > > Unfortunately I've added

Re: [PATCH can-next v6] can: add tx/rx LED trigger support

2012-09-03 Thread Oliver Hartkopp
On 03.09.2012 20:29, Fabio Baltieri wrote: > On Mon, Sep 03, 2012 at 08:13:35PM +0200, Kurt Van Dijck wrote: >> On Mon, Sep 03, 2012 at 02:40:39PM +0200, Marc Kleine-Budde wrote: >>> The net->ifindex is unique. But it's only an integer. Usually can0 has a >>> ifindex != 0, so a simple can%d is

Re: [PATCH v7 9/9] block: Avoid deadlocks with bio allocation by stacking drivers

2012-09-03 Thread Mikulas Patocka
On Thu, 30 Aug 2012, Kent Overstreet wrote: > On Thu, Aug 30, 2012 at 06:07:45PM -0400, Vivek Goyal wrote: > > On Wed, Aug 29, 2012 at 10:13:45AM -0700, Kent Overstreet wrote: > > > > [..] > > > > Performance aside, punting submission to per device worker in case of > > > > deep > > > > stack

[PATCH] Revert "spi/doc: spi_master_put must be followed up by kfree"

2012-09-03 Thread Guenter Roeck
Actually, spi_master_put() after spi_alloc_master() must _not_ be followed by kfree(). The memory is already freed with the call to spi_master_put() through spi_master_class, which registers a release function. Calling both spi_master_put() and kfree() results in often nasty (and delayed) crashes

Re: [RFC 1/2] virtio_console: Add support for DMA memory allocation

2012-09-03 Thread Michael S. Tsirkin
On Mon, Sep 03, 2012 at 04:57:45PM +0200, Sjur Brændeland wrote: > Hi Michael, > > > How does access to descriptors work in this setup? > > When the ring is setup by remoteproc the descriptors are > also allocated using dma_alloc_coherent(). > > >> -static void free_buf(struct port_buffer *buf)

[PATCH 3/4] watchdog: introduce retu_wdt driver

2012-09-03 Thread Aaro Koskinen
Introduce Retu watchdog driver. Cc: linux-watch...@vger.kernel.org Acked-by: Tony Lindgren Signed-off-by: Aaro Koskinen --- drivers/watchdog/Kconfig| 12 +++ drivers/watchdog/Makefile |1 + drivers/watchdog/retu_wdt.c | 188 +++ 3 files

[PATCH 0/4] cbus/retu drivers to mainline

2012-09-03 Thread Aaro Koskinen
This patch set introduces drivers for CBUS access and Retu multifunction chip found on Nokia Internet Tablets (770, N800, N810). It would be nice get these patches applied as the functionality of these devices is severely lacking without Retu. E.g. watchdog support is mandatory at least on Nokia

[PATCH 2/4] mfd: introduce retu-mfd driver

2012-09-03 Thread Aaro Koskinen
Retu is a multi-function device found on Nokia Internet Tablets implementing at least watchdog, RTC, headset detection and power button functionality. This patch implements minimum functionality providing register access, IRQ handling and power off functions. Cc: sa...@linux.intel.com Acked-by:

[PATCH 4/4] input: misc: introduce retu-pwrbutton

2012-09-03 Thread Aaro Koskinen
Add Retu power button driver. Cc: linux-in...@vger.kernel.org Signed-off-by: Aaro Koskinen --- drivers/input/misc/Kconfig | 10 +++ drivers/input/misc/Makefile |1 + drivers/input/misc/retu-pwrbutton.c | 127 +++ 3 files changed, 138

[PATCH 1/4] i2c: introduce i2c-cbus driver

2012-09-03 Thread Aaro Koskinen
Add i2c driver to enable access to devices behind CBUS on Nokia Internet Tablets. The patch also adds CBUS I2C configuration for N8x0 which is one of the users of this driver. Cc: linux-...@vger.kernel.org Acked-by: Felipe Balbi Acked-by: Tony Lindgren Signed-off-by: Aaro Koskinen ---

[PATCH RESEND] video: Remove pnx4008 driver

2012-09-03 Thread Roland Stigge
This patch removes the video driver for pnx4008. The architecture is being removed via the arm-soc tree. Signed-off-by: Roland Stigge Acked-by: Arnd Bergmann --- Applies to v3.6-rc4 drivers/video/Kconfig| 15 drivers/video/Makefile |2

Re: [PATCH] virtio: Don't access device data after unregistration.

2012-09-03 Thread Michael S. Tsirkin
On Mon, Sep 03, 2012 at 04:50:10PM +0200, Sjur Brændeland wrote: > Hi Michael, > > >> Fix panic in virtio.c when CONFIG_DEBUG_SLAB is set. > > > > What's the root cause of the panic? > > I believe the cause of the panic is calling > ida_simple_remove(_index_ida, dev->index); > when the dev

Re: [PATCH RESEND 1/2] i2c: pnx: Fix bit definitions

2012-09-03 Thread Roland Stigge
Hi Wolfram, On 20/08/12 19:55, Wolfram Sang wrote: >> I've never had my hands on a PNX4008 chip at NXP, but I do >> believe they are the same IP. That specific I2C IP was used in a >> number of NXP/Phillips chips besides the PNX4008/LPC32xx. I don't >> think there are any PNX4008's in the wild,

[PATCH] Fix uninitialized variable in ath6kl ath6kl_sdio_enable_scatter

2012-09-03 Thread Andi Kleen
gcc 4.8 warns /backup/lsrc/git/linux-lto-2.6/drivers/net/wireless/ath/ath6kl/sdio.c: In function 'ath6kl_sdio_enable_scatter': /backup/lsrc/git/linux-lto-2.6/drivers/net/wireless/ath/ath6kl/sdio.c:748:16: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized] if

Re: western digital caviar black. EXT4-fs error

2012-09-03 Thread Azat Khuzhin
Anybody? On Sat, Sep 1, 2012 at 11:53 PM, Azat Khuzhin wrote: > I'v also post question here > > http://serverfault.com/questions/423565/western-digital-caviar-black-ext4-fs-error > > On Sat, Sep 1, 2012 at 11:48 PM, Azat Khuzhin wrote: >> Recently I update my HDD on desktop machine, and bought

Re: [PATCH] Remove bogus memcpy in brcm80211 ai_detach

2012-09-03 Thread Larry Finger
On 09/03/2012 02:57 PM, Andi Kleen wrote: On Mon, Sep 03, 2012 at 02:22:48PM -0500, Larry Finger wrote: Have you compiled all of wireless with gcc 4.8? If so, can I assume that you will report warnings for other drivers? I did 64bit allyesconfig with LTO yes. wireless has very few warnings

Re: [PATCH 08/13] perf tools: Use __maybe_used for unused variables

2012-09-03 Thread Irina Tirdea
On Mon, Sep 3, 2012 at 4:07 AM, Namhyung Kim wrote: > Hi, Hi, > > On Wed, 29 Aug 2012 01:04:25 +0300, Irina Tirdea wrote: >> perf defines __used to for marking unused variables. >> The variable __used is defined to __attribute__((__unused__)), which >> contradicts the kernel definition to

Re: [PATCH] Remove bogus memcpy in brcm80211 ai_detach

2012-09-03 Thread Andi Kleen
On Mon, Sep 03, 2012 at 02:22:48PM -0500, Larry Finger wrote: > On 09/03/2012 02:13 PM, Andi Kleen wrote: > >gcc 4.8 warns for this memcpy. While the copy size is correct, the whole > >copy seems to be a nop because the destination is never used, and > >there's no need to use memcpy to copy

Re: [PATCH] staging/ozwpan: Fix zero address check in oz_set_active_pd

2012-09-03 Thread Andi Kleen
> Its already fixed by this patch :- > > http://driverdev.linuxdriverproject.org/pipermail/devel/2012-August/029734.html Should be in 3.6 then as it's a bug fix. -Andi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: when the MTU interface is modified, the promiscuous mode is reset in gianfar driver

2012-09-03 Thread David Miller
From: chikazawa.ak...@jp.fujitsu.com (近沢 哲史) Date: Mon, 27 Aug 2012 17:38:34 +0900 > I am using the gianfar ethernet driver. I am having a problem with the > interface settings. > Under promiscuous mode, when the MTU interface is modified, the promiscuous > mode setting is turned off in

Re: [PATCH v2 1/9] pinctrl: mvebu: pinctrl driver core

2012-09-03 Thread Jason Cooper
On Sun, Sep 02, 2012 at 10:27:29AM +0200, Sebastian Hesselbarth wrote: > Maybe Jason can also comment on what branch he wants to have it based > on, as we all agreed to get it through the Marvell tree. Please base against: git://git.infradead.org/users/jcooper/linux.git boards-for-v3.7-v2 thx,

Re: [PATCH] staging/ozwpan: Fix zero address check in oz_set_active_pd

2012-09-03 Thread Rupesh Gujare
On 03/09/12 20:17, Andi Kleen wrote: gcc 4.8 warns about the incorrect memcmp size. I think it's supposed to be an ethernet address, so should be always 6 bytes. The code was wrong, would either compare 4 or 8 bytes (32bit vs 64bit)

Re: [PATCH] media: v4l2-ctrls: add control for test pattern

2012-09-03 Thread Sakari Ailus
Hi Prabhakar, Thanks for the patch. On Mon, Sep 03, 2012 at 02:46:17PM +0530, Prabhakar Lad wrote: > From: Lad, Prabhakar > > add V4L2_CID_TEST_PATTERN of type menu, which determines > the internal test pattern selected by the device. > > Signed-off-by: Lad, Prabhakar > Signed-off-by:

[PATCH RESEND] usb: ohci: Fix Kconfig dependency on USB_ISP1301

2012-09-03 Thread Roland Stigge
With "select USB_ISP1301 ...", it could happen that I2C isn't selected although USB_ISP1301 depends on it. Fixing with "depends on ..." and emulating the condition via "|| !()". Signed-off-by: Roland Stigge Acked-by: Alan Stern --- drivers/usb/host/Kconfig |2 +- 1 file changed, 1

Re: [PATCH v2] ARM: S3C24XX: Add WIZnet W5300E01-ARM board support

2012-09-03 Thread Sylwester Nawrocki
On 09/03/2012 07:36 PM, Taehun Kim wrote: > +static void __init w5300e01_init(void) > +{ > + s3c_nand_set_platdata(_nand_info); > + platform_add_devices(w5300e01_devices, ARRAY_SIZE(w5300e01_devices)); > + > + /* W5300 interrupt pin. */ > + s3c_gpio_cfgpin(S3C2410_GPF(0),

Re: [PATCH] Remove bogus memcpy in brcm80211 ai_detach

2012-09-03 Thread Larry Finger
On 09/03/2012 02:13 PM, Andi Kleen wrote: gcc 4.8 warns for this memcpy. While the copy size is correct, the whole copy seems to be a nop because the destination is never used, and there's no need to use memcpy to copy pointers anyways. And the type of the pointer was wrong, but at least those

[GIT] kbuild rc fixes for v3.6

2012-09-03 Thread Michal Marek
Hi Linus, there are two fixes that should go into 3.6. The link-vmlinux.sh one is obvious. The other one fixes make firmware_install with certain configurations, where a file in the toplevel firmware tree gets installed first, and $(INSTALL_FW_PATH)/$$(dir ) results in /lib/firmware/./, which

[PATCH] staging/ozwpan: Fix zero address check in oz_set_active_pd

2012-09-03 Thread Andi Kleen
gcc 4.8 warns about the incorrect memcmp size. I think it's supposed to be an ethernet address, so should be always 6 bytes. The code was wrong, would either compare 4 or 8 bytes (32bit vs 64bit) /backup/lsrc/git/linux-lto-2.6/drivers/staging/ozwpan/ozcdev.c: In function 'oz_set_active_pd':

[PATCH] Remove bogus memcpy in brcm80211 ai_detach

2012-09-03 Thread Andi Kleen
gcc 4.8 warns for this memcpy. While the copy size is correct, the whole copy seems to be a nop because the destination is never used, and there's no need to use memcpy to copy pointers anyways. And the type of the pointer was wrong, but at least those are always the same. Just remove it.

Re: [PATCH] Fix memset in NFS zap caches

2012-09-03 Thread Myklebust, Trond
On Mon, 2012-09-03 at 14:52 -0400, Trond Myklebust wrote: > On Mon, 2012-09-03 at 20:47 +0200, Andi Kleen wrote: > > > No, this is a gcc bug. > > > > > > NFS_COOKIEVERF(inode) resolves to an array, so the current code is > > > correct. The above change will cause the 2nd half of the array to

Re: [PATCH v2 -tip 1/5] x86, MSI: Support multiple MSIs in presense of IRQ remapping

2012-09-03 Thread Yinghai Lu
On Mon, Sep 3, 2012 at 2:17 AM, Alexander Gordeev wrote: > The MSI specification has several constraints in comparison with MSI-X, > most notable of them is the inability to configure MSIs independently. > As a result, it is impossible to dispatch interrupts from different > queues to different

Re: [PATCH] Fix memset in NFS zap caches

2012-09-03 Thread Myklebust, Trond
On Mon, 2012-09-03 at 20:47 +0200, Andi Kleen wrote: > > No, this is a gcc bug. > > > > NFS_COOKIEVERF(inode) resolves to an array, so the current code is > > correct. The above change will cause the 2nd half of the array to remain > > uninitialised... > > Are you sure? > >

[PATCH] Fix incorrect memset in bnx2fc_parse_fcp_rsp

2012-09-03 Thread Andi Kleen
gcc 4.8 warns because the memset only clears sizeof(char *) bytes, not the whole buffer. Use the correct buffer size and clear the whole sense buffer. /backup/lsrc/git/linux-lto-2.6/drivers/scsi/bnx2fc/bnx2fc_io.c: In function 'bnx2fc_parse_fcp_rsp':

Re: [PATCH] Fix memset in NFS zap caches

2012-09-03 Thread Andi Kleen
> No, this is a gcc bug. > > NFS_COOKIEVERF(inode) resolves to an array, so the current code is > correct. The above change will cause the 2nd half of the array to remain > uninitialised... Are you sure? include/linux/nfs_fs.h:268:static inline __be32 *NFS_COOKIEVERF(const struct inode *inode)

Re: [PATCH] Fix memset in NFS zap caches

2012-09-03 Thread Myklebust, Trond
On Mon, 2012-09-03 at 20:35 +0200, Andi Kleen wrote: > Fix memset in nfs_zap_caches_locked > > This memset overruns the buffer by 4 bytes on 64bit systems. > > gcc 4.8 correct complains: > > /backup/lsrc/git/linux-lto-2.6/fs/nfs/inode.c: In function > 'nfs_zap_caches_locked': >

[PATCH] Fix memset in NFS zap caches

2012-09-03 Thread Andi Kleen
Fix memset in nfs_zap_caches_locked This memset overruns the buffer by 4 bytes on 64bit systems. gcc 4.8 correct complains: /backup/lsrc/git/linux-lto-2.6/fs/nfs/inode.c: In function 'nfs_zap_caches_locked': /backup/lsrc/git/linux-lto-2.6/fs/nfs/inode.c:157:41: warning: argument to 'sizeof' in

Re: [PATCH can-next v6] can: add tx/rx LED trigger support

2012-09-03 Thread Fabio Baltieri
On Mon, Sep 03, 2012 at 08:13:35PM +0200, Kurt Van Dijck wrote: > On Mon, Sep 03, 2012 at 02:40:39PM +0200, Marc Kleine-Budde wrote: > > The net->ifindex is unique. But it's only an integer. Usually can0 has a > > ifindex != 0, so a simple can%d is contra productive here. > > > > Some pointers to

Re: [PATCH can-next v6] can: add tx/rx LED trigger support

2012-09-03 Thread Kurt Van Dijck
On Mon, Sep 03, 2012 at 02:40:39PM +0200, Marc Kleine-Budde wrote: > On 08/25/2012 12:01 AM, Fabio Baltieri wrote: > > Hello Kurt, > > > > On Fri, Aug 24, 2012 at 02:42:48PM +0200, Kurt Van Dijck wrote: > >> On Fri, Aug 24, 2012 at 01:28:16PM +0200, Marc Kleine-Budde wrote: > >>> On 08/24/2012

Re: [PATCH v2] ARM: S3C24XX: Add WIZnet W5300E01-ARM board support

2012-09-03 Thread Vasily Khoruzhick
On Mon, Sep 3, 2012 at 8:36 PM, Taehun Kim wrote: > This patch adds WIZnet W5300E01 board changed to the new gpio functions. > Please review this patch and apply it if do not have any problems. > > Signed-off-by: Taehun Kim > --- > arch/arm/mach-s3c24xx/Kconfig |5 + >

[PATCH v2] ARM: S3C24XX: Add WIZnet W5300E01-ARM board support

2012-09-03 Thread Taehun Kim
This patch adds WIZnet W5300E01 board changed to the new gpio functions. Please review this patch and apply it if do not have any problems. Signed-off-by: Taehun Kim --- arch/arm/mach-s3c24xx/Kconfig |5 + arch/arm/mach-s3c24xx/Makefile|1 +

Re: [RFC] semantics of singlestepping vs. tracer exiting

2012-09-03 Thread Al Viro
On Mon, Sep 03, 2012 at 06:05:38PM +0200, Oleg Nesterov wrote: > This is not easy to fix. ptrace_disable() and user_disable_single_step() > is arch dependant, but at least on x86 it assumes that the tracee is not > running, so exit_ptrace() can't do this. True (IOW, proposed fix is hopeless - we

Re: rcu_bh stalls on 3.2.28

2012-09-03 Thread Henrique de Moraes Holschuh
On Mon, 03 Sep 2012, Michael Wang wrote: > On 09/01/2012 07:02 AM, Henrique de Moraes Holschuh wrote: > > Just got one of these: > > > > kernel: INFO: rcu_bh detected stall on CPU 2 (t=0 jiffies) > > kernel: Pid: 0, comm: swapper/2 Not tainted 3.2.28+ #2 > > kernel: Call Trace: > > kernel: []

Re: [PATCH v2] memcg: first step towards hierarchical controller

2012-09-03 Thread Michal Hocko
On Mon 03-09-12 19:46:51, Glauber Costa wrote: > Here is a new attempt to lay down a path that will allow us to deprecate > the non-hierarchical mode of operation from memcg. Unlike what I posted > before, I am making this behavior conditional on a Kconfig option. > Vanilla users will see no

Re: [PATCH v3 v3 00/20] Input and HID updates for 3.7

2012-09-03 Thread Henrik Rydberg
> Indeed, we are getting close. I tested the whole patch set again. > So: > - patches 1 to 19 are not introducing any bugs (at least from what I've seen). > - patch 20 is not good (see the reply in the patch). > > So far, devices tested are: > - Elan > - 3M > - Lumio > - Cypress > - Topseed > -

Re: [PATCH 20/20] HID: hid-multitouch: Add missing contact count detection

2012-09-03 Thread Henrik Rydberg
Hi Benjamin, > Unfortunately, this is not working. We have bad devices that present either: > - a null logical_maximum (some Stantum do) -> the value 1 is assigned > to maxcontacts, and the device is turned into a mono touch > - an obviously wrong value (with respect to the current state of

Re: [RFC] semantics of singlestepping vs. tracer exiting

2012-09-03 Thread Oleg Nesterov
On 09/03, Oleg Nesterov wrote: > > This is another reason to move enable/disable step into ptrace_stop(). > And in fact I had the patches a loong ago, but we need to cleanup > the usage of PT_SINGLESTEP/PT_BLOCKSTEP first. The tracer should > simply set/clear these PT_ flags and resume the tracee

Re: [PATCH v2] memcg: first step towards hierarchical controller

2012-09-03 Thread Ben Hutchings
On Mon, Sep 03, 2012 at 07:46:51PM +0400, Glauber Costa wrote: > Here is a new attempt to lay down a path that will allow us to deprecate > the non-hierarchical mode of operation from memcg. Unlike what I posted > before, I am making this behavior conditional on a Kconfig option. > Vanilla users

[PATCH] ipmi: fix message retry timeout

2012-09-03 Thread Bernhard Schmidt
After ddac44b7 the condition in check_msg_timeout() which does the actual timeout verification is always false. Both ent->timeout and timeout_period have the value 1000. This leads to messages erroneously being retried each time ipmi_timeout_handler() is invoked while a response to a previously

  1   2   3   4   5   6   >