[patch] driver-core: dev_to_node() should handle NULL pointers

2012-07-19 Thread Dan Carpenter
What prompted this patch is that in dma_pool_create() we call dev_to_node() before checking whether "dev" is NULL. It looks like there are places which call dma_pool_create() with a NULL pointer. An example is in drivers/usb/gadget/amd5536udc.c. Signed-off-by: Dan Carpenter --- Static checker f

Re: 3.5-rc6 futex_wait_requeue_pi oops.

2012-07-19 Thread Darren Hart
On 07/19/2012 05:37 PM, Darren Hart wrote: > > > On 07/19/2012 04:22 PM, Darren Hart wrote: >> >> >> On 07/13/2012 11:54 AM, Dave Jones wrote: >>> On Fri, Jul 13, 2012 at 08:47:38PM +0200, Thomas Gleixner wrote: >>> > On Fri, 13 Jul 2012, Dave Jones wrote: >>> > >>> > > Looks like calling fut

Re: pstore/ram: Add ftrace messages handling

2012-07-19 Thread Dan Carpenter
On Thu, Jul 19, 2012 at 04:20:32PM -0700, Anton Vorontsov wrote: > Hi Dan, > > On Thu, Jul 19, 2012 at 05:28:56PM +0300, Dan Carpenter wrote: > > The patch a694d1b5916a: "pstore/ram: Add ftrace messages handling" > > from Jul 9, 2012, leads to the following Smatch complaint: > > A nice tool. The

Re: [PATCH] dma: tegra: enable/disable dma clock

2012-07-19 Thread Laxman Dewangan
On Friday 20 July 2012 12:10 PM, Vinod Koul wrote: On Fri, 2012-07-20 at 11:34 +0530, Laxman Dewangan wrote: On Friday 20 July 2012 11:32 AM, Vinod Koul wrote: for a start you can move these to .alloc_chan_resources and .free_chan_resources while doing a refcount. Further optimization can be

Re: [QUESTION ON BUG] the rcu stall issue could not be reproduced

2012-07-19 Thread Dan Carpenter
My bug was fixed in March. There was an email thread about it when the merge window opened but I can't find it... regards, dan carpenter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://

Re: [PATCH] dmaengine: Cleanup logging messages

2012-07-19 Thread Vinod Koul
On Wed, 2012-07-18 at 09:51 -0700, Joe Perches wrote: > Use a more current logging style. > > Add pr_fmt to prefix dmaengine: to messages. > Convert printk(KERN_ERR to pr_err(. > Convert embedded function name use to "%s: ", __func__ > Align arguments. > Applied thanks -- ~Vinod -- To unsubscr

Re: [PATCH] dma: tegra: enable/disable dma clock

2012-07-19 Thread Vinod Koul
On Fri, 2012-07-20 at 11:34 +0530, Laxman Dewangan wrote: > On Friday 20 July 2012 11:32 AM, Vinod Koul wrote: > > On Wed, 2012-07-18 at 14:26 +0530, Laxman Dewangan wrote: > >> Enable the DMA clock when registering DMA driver and > >> disable clock when removing the DMA driver. > >> > >> The failu

Re: [PATCH] Cgroup: Fix memory accounting scalability in shrink_page_list

2012-07-19 Thread Johannes Weiner
On Thu, Jul 19, 2012 at 04:34:26PM -0700, Tim Chen wrote: > Hi, > > I noticed in a multi-process parallel files reading benchmark I ran on a > 8 socket machine, throughput slowed down by a factor of 8 when I ran > the benchmark within a cgroup container. I traced the problem to the > following c

RE: [PATCH 1/2] device: add dma_params->max_segment_count

2012-07-19 Thread Marek Szyprowski
Hello, On Thursday, July 19, 2012 6:24 PM Rob Clark wrote: > From: Rob Clark > > For devices which have constraints about maximum number of segments > in an sglist. For example, a device which could only deal with > contiguous buffers would set max_segment_count to 1. > > The initial motivati

[PATCH] sched/numa: recovered SD_PERFER_SIBLING on CPU domain

2012-07-19 Thread Alex Shi
commit 8e7fbcbc22c(sched: Remove stale power aware scheduling remnants and dysfunctional knobs) removed SD_PERFER_SIBLING on CPU domain On numa machine, that causes load_balance didn't perfer LCPU in same physical CPU package. It causes some regression on our numa machines from core2 to NHM and SN

Re: [PATCH] dma: tegra: enable/disable dma clock

2012-07-19 Thread Laxman Dewangan
On Friday 20 July 2012 11:32 AM, Vinod Koul wrote: On Wed, 2012-07-18 at 14:26 +0530, Laxman Dewangan wrote: Enable the DMA clock when registering DMA driver and disable clock when removing the DMA driver. The failure was observed on Tegra20 based system by Stephen Warren. However, it is workin

Re: [PATCH] dma: tegra: enable/disable dma clock

2012-07-19 Thread Vinod Koul
On Wed, 2012-07-18 at 14:26 +0530, Laxman Dewangan wrote: > Enable the DMA clock when registering DMA driver and > disable clock when removing the DMA driver. > > The failure was observed on Tegra20 based system by > Stephen Warren. However, it is working fine on tegra30 > based system and probabl

Re: [PATCH 0/7 v2] dma: sh: stop using .private

2012-07-19 Thread Vinod Koul
On Thu, 2012-07-05 at 12:29 +0200, Guennadi Liakhovetski wrote: > This patch series supersedes the one from yesterday with the same title. > The 4 patches from v1 are all unchanged, v2 just prepends them with 3 more > preparatory patches. From the original series description: > > Here's an attem

[PATCH v5 08/11] arm/dts: Add twl4030-usb data

2012-07-19 Thread Kishon Vijay Abraham I
Add twl4030-usb data node in twl4030 device tree file. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/twl4030.dtsi | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/twl4030.dtsi b/arch/arm/boot/dts/twl4030.dtsi index 22f4d13..761a5a5 1006

[PATCH v5 10/11] arm/dts: omap: Add usb_otg and glue data

2012-07-19 Thread Kishon Vijay Abraham I
Add usb otg data node in omap4/omap3 device tree file. Also update the node with board specific setting in omapx-.dts file. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/omap3-beagle.dts |6 ++ arch/arm/boot/dts/omap3-evm.dts|6 ++ arch/arm/boot/dts/omap3.dtsi

[PATCH v5 04/11] arm: omap: hwmod: add a new addr space in otg for writing to control module

2012-07-19 Thread Kishon Vijay Abraham I
The mailbox register for usb otg in omap is present in control module. On detection of any events VBUS or ID, this register should be written to send the notification to musb core. Till we have a separate control module driver to write to control module, omap2430 will handle the register writes to

[PATCH v5 01/11] drivers: usb: otg: add a new driver for omap usb2 phy

2012-07-19 Thread Kishon Vijay Abraham I
All phy related programming like enabling/disabling the clocks, powering on/off the phy is taken care of by this driver. It is also used for OTG related functionality like srp. This also includes device tree support for usb2 phy driver and the documentation with device tree binding information is

[PATCH v5 02/11] arm/dts: omap: Add omap-usb2 dt data

2012-07-19 Thread Kishon Vijay Abraham I
Add omap-usb2 data node in omap4 device tree file. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/omap4.dtsi |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/omap4.dtsi index 29c6243..15f1890 100644 --- a/arch/arm/boot/dts/

[PATCH v5 03/11] drivers: usb: otg: make twl6030_usb as a comparator driver to omap_usb2

2012-07-19 Thread Kishon Vijay Abraham I
All the PHY configuration other than VBUS, ID GND and OTG SRP are removed from twl6030. The phy configurations are taken care by the dedicated usb2 phy driver. So twl6030 is made as comparator driver for VBUS and ID detection. Writing to control module which is now handled in omap2430.c should be

[PATCH v5 05/11] drivers: usb: twl6030: Add dt support for twl6030 usb

2012-07-19 Thread Kishon Vijay Abraham I
Add device tree support for twl6030 usb driver. Update the Documentation with device tree binding information. Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings/usb/twl-usb.txt| 22 +++ drivers/usb/otg/twl6030-usb.c | 39 +-

[PATCH v5 00/11] omap: musb: Add device tree support

2012-07-19 Thread Kishon Vijay Abraham I
This patch series adds device tree support for MUSB and device tree support for all the related modules to get MUSB working in OMAP platform. A new omap-usb2 phy driver has been added (with only dt suppport) to perform phy configurations. Previously this configuration was performed by twl6030, usi

[PATCH v5 06/11] arm/dts: Add twl6030-usb data

2012-07-19 Thread Kishon Vijay Abraham I
Add twl6030-usb data node in twl6030 device tree file Signed-off-by: Kishon Vijay Abraham I --- arch/arm/boot/dts/omap4-panda.dts |4 arch/arm/boot/dts/omap4-sdp.dts |4 arch/arm/boot/dts/twl6030.dtsi|6 ++ 3 files changed, 14 insertions(+) diff --git a/arch/arm/

[PATCH v5 07/11] drivers: usb: twl4030: Add device tree support for twl4030 usb

2012-07-19 Thread Kishon Vijay Abraham I
Add device tree support for twl4030 usb driver. Update the Documentation with device tree binding information. Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings/usb/twl-usb.txt| 19 ++ drivers/usb/otg/twl4030-usb.c | 26 +++

[PATCH v5 11/11] arm: omap: phy: remove unused functions from omap-phy-internal.c

2012-07-19 Thread Kishon Vijay Abraham I
All the unnessary functions in omap-phy-internal is removed. These functionality are now handled by omap-usb2 phy driver. Cc: Felipe Balbi Signed-off-by: Kishon Vijay Abraham I Acked-by: Tony Lindgren --- arch/arm/mach-omap2/omap_phy_internal.c | 138 --- arch/arm/

[PATCH v5 09/11] drivers: usb: musb: Add device tree support for omap musb glue

2012-07-19 Thread Kishon Vijay Abraham I
Added device tree support for omap musb driver and updated the Documentation with device tree binding information. Signed-off-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/usb/omap-usb.txt | 34 +++- drivers/usb/musb/omap2430.c| 54 +

Re: [PATCH 3/4] powerpc/crypto: add 842 hardware compression driver

2012-07-19 Thread Michael Ellerman
On Thu, 2012-07-19 at 09:42 -0500, Seth Jennings wrote: > This patch adds the driver for interacting with the 842 > compression accelerator on IBM Power7+ systems. ... > +struct nx842_slentry { > + unsigned long ptr; /* Absolute address (use virt_to_abs()) */ > /+unsigned long len; > +};

Re: [RFC PATCH -tip ] tracing: make a snapshot feature available from userspace.

2012-07-19 Thread Hiraku Toyooka
Hello, Sorry for the late reply. (2012/07/12 3:00), Rob Landley wrote: How about: CONFIG_TRACER_MAX_TRACE makes a generic snapshot feature available to all tracers. (Some tracers, such as "irqsoff" or "wakeup", use their own internal snapshot implementation.) Thanks, but I think the following

Re: [RFC PATCH -tip ] tracing: make a snapshot feature available from userspace.

2012-07-19 Thread Hiraku Toyooka
Hello, Steven, (Sorry for the late reply.) Tnank you for your comments. (2012/07/12 8:26), Steven Rostedt wrote: +Snapshot + +If CONFIG_TRACER_MAX_TRACE is set, the (generic) snapshot +feature is available in all tracers except for the special +tracers which use a snapshot inside themse

linux-next: Tree for July 20

2012-07-19 Thread Stephen Rothwell
Hi all, Changes since 20120719: The scsi tree gained a conflict against Linus' tree and a build failure for which I reverted a commit. The net-next tree lost a conflict. The tty tree lost its build failure but gained 3 more for which I disabled 2 staging drivers and applied a patch.

linux-next: build failure after merge of the final tree (tty tree related)

2012-07-19 Thread Stephen Rothwell
Hi all, After merging the final tree, today's linux-next build (powerpc allyesconfig) failed like this: drivers/usb/serial/console.c: In function 'usb_console_setup': drivers/usb/serial/console.c:168:16: error: invalid type argument of '->' (have 'struct ktermios') drivers/usb/serial/console.c:1

Re: [PATCH] kdump: Append newline to the last lien of vmcoreinfo note

2012-07-19 Thread Atsushi Kumagai
Hello Vivek, On Thu, 19 Jul 2012 09:49:21 -0400 Vivek Goyal wrote: > On Wed, Jul 18, 2012 at 03:04:39PM -0700, Andrew Morton wrote: > > On Tue, 17 Jul 2012 13:36:55 -0400 > > Vivek Goyal wrote: > > > > > Last line of vmcoreinfo note does not end with \n. Parsing all the lines > > > in note bec

Re: commit 91013923c712e1c: "irqdomain: Replace LEGACY mapping with LINEAR" breaks console on ARM i.mx23

2012-07-19 Thread Grant Likely
On Thu, Jul 19, 2012 at 11:28 AM, Attila Kinali wrote: > Hi, > > I'm working on an embedded system based on a Freescale ARM9 processor i.mx23. > > While trying linux-next i stumpled over my login prompt getting broken. > What exactly happens is that the kernel boots normally, but when my > login p

Andre Hedrick (anhedric) has died

2012-07-19 Thread Nate Lawson
Dear Linux hackers, Sorry for the intrusion on this technical list. I wanted to let Andre's fellow Linux developers know that he died this past weekend. For those that don't know him, Andre was an active developer for the ATA driver a while back. I have known Andre for about 9 years, although I

[PATCH] regulator: mc13xxx: Remove extern function declaration for mc13xxx_sw_regulator

2012-07-19 Thread Axel Lin
This function does not exist, remove the extern function declaration. Signed-off-by: Axel Lin --- drivers/regulator/mc13xxx.h |1 - 1 file changed, 1 deletion(-) diff --git a/drivers/regulator/mc13xxx.h b/drivers/regulator/mc13xxx.h index 8343a25..eaff551 100644 --- a/drivers/regulator/mc13

Re: Boot breaks in -next from LEGACY to LINEAR conversion

2012-07-19 Thread Grant Likely
On Wed, Jul 18, 2012 at 10:10 AM, Mark Brown wrote: > On Tue, Jul 17, 2012 at 07:57:49PM +0100, Mark Brown wrote: >> -next fails to boot for me today on my s3c64xx based systems. Walking >> back to the last time I tried and bisecting likely branches I find that >> commit 910139 (irqdomain: Replac

Re: [PATCH] Cgroup: Fix memory accounting scalability in shrink_page_list

2012-07-19 Thread Minchan Kim
On Fri, Jul 20, 2012 at 12:19:20PM +0900, Kamezawa Hiroyuki wrote: > (2012/07/20 8:34), Tim Chen wrote: > >Hi, > > > >I noticed in a multi-process parallel files reading benchmark I ran on a > >8 socket machine, throughput slowed down by a factor of 8 when I ran > >the benchmark within a cgroup co

Re: A question on printascii

2012-07-19 Thread Chris Ball
Hi Shashidhar, On Wed, Jul 18 2012, Shashidhar Hiremath wrote: > I want to use printascii to debug my serial driver. How do I enable > it and use the feature. > Currently I have enabled in menuconfig and done an extern on the > printascii api, this doesn't seem to work, So any hints for debugg

Re: [PATCH RT 00/12] [ANNOUNCE] 3.0.36-rt58-rc1 stable review

2012-07-19 Thread Mike Galbraith
On Thu, 2012-07-19 at 10:02 -0400, Steven Rostedt wrote: > On Thu, 2012-07-19 at 15:51 +0200, Mike Galbraith wrote: > > > Every kernel I've fed you script to has died sooner or later, so I wish > > him fair sailing. Here there be sea monsters ;-) > > I'm curious. Can my script bring down a non-

Re: [PATCH 5/9] KVM: MMU: fask check write-protect for direct mmu

2012-07-19 Thread Xiao Guangrong
BTW, they are some bug fix patches on -master branch, but it is not existed on -next branch: commit: f411930442e01f9cf1bf4df41ff7e89476575c4d commit: 85b7059169e128c57a3a8a3e588fb89cb2031da1 It causes code conflict if we do the development on -next. On 07/20/2012 08:39 AM, Marcelo Tosatti wrote:c

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

2012-07-19 Thread Christian Riesch
[Sent again due to problems with email client] Hi, On 07/20/2012 04:01 AM, Stephen Rothwell wrote: Hi all, After merging the net-next tree, today's linux-next build (powerpc pmac32_defconfig) failed like this: ERROR: "phy_disconnect" [drivers/net/usb/asix.ko] undefined! ERROR: "phy_stop" [dri

Re: A question on printascii

2012-07-19 Thread Shashidhar Hiremath
I am working on ARM architecture. On Wed, Jul 18, 2012 at 9:33 PM, Randy Dunlap wrote: > On 07/18/2012 06:03 AM, Shashidhar Hiremath wrote: > >> HI, >> I want to use printascii to debug my serial driver. How do I enable >> it and use the feature. >> Currently I have enabled in menuconfig and

linux-next: build failure after merge of the tty tree

2012-07-19 Thread Stephen Rothwell
Hi Greg, After merging the tty tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/staging/serqt_usb2/serqt_usb2.c: In function 'qt_set_termios': drivers/staging/serqt_usb2/serqt_usb2.c:1198:29: error: incompatible types when initializing type 'struct ktermios *' using

linux-next: build failure after merge of the tty tree

2012-07-19 Thread Stephen Rothwell
Hi Greg, After merging the tty tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/staging/ipack/devices/ipoctal.c: In function 'ipoctal_set_termios': drivers/staging/ipack/devices/ipoctal.c:614:22: error: invalid type argument of '->' (have 'struct ktermios') drivers/

Re: [PATCH] Cgroup: Fix memory accounting scalability in shrink_page_list

2012-07-19 Thread Kamezawa Hiroyuki
(2012/07/20 8:34), Tim Chen wrote: Hi, I noticed in a multi-process parallel files reading benchmark I ran on a 8 socket machine, throughput slowed down by a factor of 8 when I ran the benchmark within a cgroup container. I traced the problem to the following code path (see below) when we are

[PATCH v3] perf: prevent overflow in size calculation

2012-07-19 Thread Cody Schafer
A large enough symbol size causes an overflow in the size parameter to the histogram allocation, leading to a segfault in symbol__inc_addr_samples later on when this histogram is accessed. In the case of being called via perf-report, this returns back and gracefully ignores the sample, eventually

Re: [RFC][PATCH v2 2/3] Hold multiple logs

2012-07-19 Thread Don Zickus
On Fri, Jul 20, 2012 at 12:39:24AM +, Seiji Aguchi wrote: > > Thank you for describing this in detail. > > > Yes - if the OOPs is instrumental in the path leading to the hang/panic - > > then the OOPS is the first place to look for the root cause of > > the problem. But it will be a case by

[PATCH] atl1c: fix issue of io access mode for AR8152 v2.1

2012-07-19 Thread cjren
When io access mode is enabled by BOOTROM or BIOS for AR8152 v2.1, the register can't be read/write by memory access mode. Clearing Bit 8 of Register 0x21c could fixed the issue. Signed-off-by: Cloud Ren Cc: stable Signed-off-by: xiong --- drivers/net/ethernet/atheros/atl1c/atl1c_hw.h |

Re: [PATCH 08/10] KVM: introduce readonly_bad_hva

2012-07-19 Thread Xiao Guangrong
On 07/19/2012 06:16 PM, Avi Kivity wrote: > On 07/17/2012 05:45 PM, Xiao Guangrong wrote: >> In the later patch, it indicates failure when we try to get a writable >> hva from the readonly slot >> >> Signed-off-by: Xiao Guangrong >> --- >> virt/kvm/kvm_main.c | 12 +++- >> 1 files chang

Re: [PATCH v2] perf: prevent overflow in size calculation

2012-07-19 Thread Cody P Schafer
struct annotation *notes = symbol__annotation(sym); const size_t size = symbol__size(sym); - size_t sizeof_sym_hist = (sizeof(struct sym_hist) + size * sizeof(u64)); + size_t sizeof_sym_hist; + + /* Check for overflow when calculating sizeof_sym_hist */ +

Re: [PATCH 07/10] KVM: introduce readonly_fault_pfn

2012-07-19 Thread Xiao Guangrong
On 07/19/2012 06:15 PM, Avi Kivity wrote: > On 07/17/2012 05:44 PM, Xiao Guangrong wrote: >> Introduce readonly_fault_pfn, in the later patch, it indicates failure >> when we try to get a writable pfn from the readonly memslot >> >> + >> inline int kvm_is_mmio_pfn(pfn_t pfn) >> { >> if (pfn_

[RESEND PATCH] [CPUFREQ] EXYNOS: bugfix on retrieving old_index from freqs.old

2012-07-19 Thread MyungJoo Ham
From: Jonghwa Lee The policy might have been changed since last call of target(). Thus, using cpufreq_frequency_table_target(), which depends on policy to find the corresponding index from a frequency, may return inconsistent index for freqs.old. Thus, old_index should be calculated not based on

Re: [PATCH] perf: prevent overflow in size calculation

2012-07-19 Thread Cody P Schafer
+ /* Check for overflow when calculating sizeof_sym_hist */ + if (size > (SIZE_MAX / sizeof(u64))) + return -1; How does it guarantee that the end result which used in zalloc below would not overflow? + + sizeof_sym_hist = (sizeof(struct sym_hist) + size * sizeo

[PATCH v2] perf: prevent overflow in size calculation

2012-07-19 Thread Cody Schafer
A large enough symbol size causes an overflow in the size parameter to the histogram allocation, leading to a segfault in symbol__inc_addr_samples later on when this histogram is accessed. In the case of being called via perf-report, this returns back and gracefully ignores the sample, eventually

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

2012-07-19 Thread Stephen Rothwell
On Fri, 20 Jul 2012 12:01:18 +1000 Stephen Rothwell wrote: > > After merging the net-next tree, today's linux-next build (powerpc > pmac32_defconfig) failed like this: This was actually yesterday's linux-next - I guess it is fixed by commit 215029375c83 ("asix: AX88172A driver depends on phylib"

Re: [RFC] Simplifying kernel configuration for distro issues

2012-07-19 Thread david
On Thu, 19 Jul 2012, Ben Hutchings wrote: On Thu, Jul 19, 2012 at 06:30:47PM +0100, Alan Cox wrote: For the end user case you need the distro to plonk the right file in the right place and be done with it, once they do that the rest is bikeshedding a ten line Makefile rule. This might work w

Re: [PATCH 5/9] KVM: MMU: fask check write-protect for direct mmu

2012-07-19 Thread Xiao Guangrong
On 07/20/2012 08:39 AM, Marcelo Tosatti wrote: > On Tue, Jul 17, 2012 at 09:53:29PM +0800, Xiao Guangrong wrote: >> If it have no indirect shadow pages we need not protect any gfn, >> this is always true for direct mmu without nested >> >> Signed-off-by: Xiao Guangrong > > Xiao, > > What is the

Stack overrun in 3.5.0-rc7 w/ cfq

2012-07-19 Thread Eric Sandeen
I got this oops & stack overrun warning while running mkfs.ext4 on a sparse 4T file hosted on xfs. Should CFQ be issuing IO here? -Eric [10821.639839] BUG: unable to handle kernel paging request at fffb900148a0 [10821.640820] IP: [] cpuacct_charge+0xb4/0x210 [10821.640820] PGD 1c0d067 PUD 0

Re: [PATCH 3/9] KVM: x86: introduce set_mmio_exit_info

2012-07-19 Thread Xiao Guangrong
On 07/20/2012 08:03 AM, Marcelo Tosatti wrote: > On Tue, Jul 17, 2012 at 09:52:13PM +0800, Xiao Guangrong wrote: >> Introduce set_mmio_exit_info to cleanup the common code >> >> Signed-off-by: Xiao Guangrong >> --- >> arch/x86/kvm/x86.c | 33 + >> 1 files changed

Re: [PATCH 6/8] vfs: Make sys_sync writeout also block device inodes

2012-07-19 Thread Fengguang Wu
Hi Al, Would you please fold the below fix to commit 5c781a65fff ("vfs: Create function for iterating over block devices")? Thanks, Fengguang --- Subject: [PATCH] sync: fix build error on iterate_bdevs() fs/sync.c:110:2: error: implicit declaration of function 'iterate_bdevs' --- include/linux

Re: [PATCH 2/9] KVM: x86: simplify read_emulated

2012-07-19 Thread Xiao Guangrong
On 07/20/2012 07:58 AM, Marcelo Tosatti wrote: >> -} >> +rc = ctxt->ops->read_emulated(ctxt, addr, mc->data + mc->end, size, >> + &ctxt->exception); >> +if (rc != X86EMUL_CONTINUE) >> +return rc; >> + >> +mc->end += size; >> + >> +read_c

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

2012-07-19 Thread Stephen Rothwell
Hi all, After merging the net-next tree, today's linux-next build (powerpc pmac32_defconfig) failed like this: ERROR: "phy_disconnect" [drivers/net/usb/asix.ko] undefined! ERROR: "phy_stop" [drivers/net/usb/asix.ko] undefined! ERROR: "phy_ethtool_gset" [drivers/net/usb/asix.ko] undefined! ERROR:

[PATCH] cpufreq: Fix sysfs deadlock with concurrent hotplug/frequency switch

2012-07-19 Thread Stephen Boyd
Running one program that continuously hotplugs and replugs a cpu concurrently with another program that continuously writes to the scaling_setspeed node eventually deadlocks with: = [ INFO: possible recursive locking detected ] 3.4.0 #37 Tainted: G

Re: [PATCH 2/2] cpumask: cpumask_scnprintf() comments correction

2012-07-19 Thread Alex Shi
On 07/16/2012 04:29 PM, Alex Shi wrote: > On 07/16/2012 03:40 PM, Rusty Russell wrote: > >> On Mon, 16 Jul 2012 10:35:54 +0800, Alex Shi wrote: >>> The function has no parameter @len now, so need to remove it from >>> comments to avoid kernel-doc warning: >> >> But it still does in my tree. >> >

Re: [PATCH] xfs: fix comment typo of struct xfs_da_blkinfo.

2012-07-19 Thread Dave Chinner
On Tue, Jul 17, 2012 at 10:40:21PM -0300, Paulo Alcantara wrote: > From: Christoph Hellwig > Date: Tue, 17 Jul 2012 03:06:43 -0400 > > > Btw, if you need more reviers for the syslinus support feel free to pass > > it by me (or the list). > > This is the branch I'm maintaing for the XFS readonly

Re: [PATCH 3/3] drivers/mmc/host: Add realtek sdmmc interface driver

2012-07-19 Thread wwang
Hi Oliver: I will fix it. Should I resend all three patches, or just this one? BR, Wei WANG 于 2012年07月19日 20:26, Oliver Neukum 写道: > On Thursday 19 July 2012 17:55:18 wei_w...@realsil.com.cn wrote: > >> +static void sd_normal_rw(struct realtek_sdmmc *host, struct mmc_request >> *mrq) >> +{ >> +

Re: [RFC][PATCH 2/4 v4] ftrace/x86: Add save_regs for i386 function calls

2012-07-19 Thread Steven Rostedt
On Thu, 2012-07-19 at 16:07 -0700, H. Peter Anvin wrote: > On 07/19/2012 04:04 PM, Steven Rostedt wrote: > > > Basically, all we want to do is add 8 to the stack pointer. And this is > > for the x86_32 version of whatever hardware is in use. > > > > What I'm telling you is that it depends on th

[PATCH] x86/tlb: fix allnoconfig building warning

2012-07-19 Thread Alex Shi
The incompatible parameter of flush_tlb_mm_range cause build warning. Fix it by correct parameter. Reported-by: Tetsuo Handa Signed-off-by: Alex Shi --- arch/x86/include/asm/tlbflush.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/tlbflush.h b/

[PATCH v2] PM / Sleep: Print name of wakeup source that aborts suspend

2012-07-19 Thread Todd Poynor
Signed-off-by: Todd Poynor --- drivers/base/power/wakeup.c | 29 + 1 files changed, 29 insertions(+), 0 deletions(-) A driver or app may repeatedly request a wakeup source while the system is attempting to enter suspend, which may indicate a bug or at least point ou

[PATCH 4/7] x86/boot: Switch output functions from command-line flags to conditional compilation

2012-07-19 Thread Joe Millenbach
Changed putstr flagging from parameter to conditional compilation for puts, debug_putstr, and error_putstr. This allows for space savings since most configurations won't use this feature. Signed-off-by: Joe Millenbach Signed-off-by: Gokul Caushik Reviewed-by: Josh Triplett --- arch/x86/boot/co

[PATCH 5/7] x86/boot: Removed unused debug flag and set code

2012-07-19 Thread Joe Millenbach
As we're no longer using the flag we don't need to extract the value from the command line and store it. This is a step towards removing command line parameter code. Signed-off-by: Joe Millenbach Signed-off-by: Gokul Caushik Reviewed-by: Josh Triplett --- arch/x86/boot/compressed/misc.c |4

[PATCH 2/7] x86/boot: Wrap debug printing in a new debug_putstr function

2012-07-19 Thread Joe Millenbach
Change all instances of if (debug) putstr(...) to a new debug_putstr(...). This allows a future change to conditionally stub out debug_putstr to save space. Signed-off-by: Joe Millenbach Signed-off-by: Gokul Caushik Reviewed-by: Josh Triplett --- arch/x86/boot/compressed/misc.c | 18

[PATCH 7/7] x86/boot: Exclude cmdline.c if you can't use it

2012-07-19 Thread Joe Millenbach
From: Gokul Caushik CONFIG_EARLY_PRINTK is the only feature that might use command line parsing in the decompression stage. If it is disabled then we can exclude the related code to save space. This can result in an estimated space savings of 2240 bytes from the compressed kernel image. Signed-

[PATCH 6/7] x86/boot: Exclude early_serial_console.c if can't use it.

2012-07-19 Thread Joe Millenbach
Removes early_serial_console.c code if we don't have the config option that enables it (EARLY_PRINTK). When disabling this code, make early_serial_base a constant 0 to allow the compiler to optimize away the code that checks for early_serial_base. Signed-off-by: Joe Millenbach Signed-off-by: Goku

[PATCH 3/7] x86/boot: Changed error putstr path to match new debug_putstr format

2012-07-19 Thread Joe Millenbach
For consistency we changed the error output path to match the new debug path. Signed-off-by: Joe Millenbach Signed-off-by: Gokul Caushik Reviewed-by: Josh Triplett --- arch/x86/boot/compressed/misc.c |6 +++--- arch/x86/boot/compressed/misc.h |1 + 2 files changed, 4 insertions(+), 3 d

[PATCH 1/7] x86/boot: Removed quiet flag and switched quiet output to debug flag

2012-07-19 Thread Joe Millenbach
There are only 3 uses of the quiet flag and they all protect output that is only useful for debugging the stub, therefore we switched to using the debug flag for all extra output. Signed-off-by: Joe Millenbach Signed-off-by: Gokul Caushik Reviewed-by: Josh Triplett --- arch/x86/boot/compressed

Re: [PATCH] PM / Sleep: Print name of wakeup source that aborts suspend

2012-07-19 Thread Todd Poynor
On Wed, Jul 18, 2012 at 09:47:34PM +0200, Rafael J. Wysocki wrote: > On Wednesday, July 18, 2012, Todd Poynor wrote: ... > > +{ > > + struct wakeup_source *ws; > > + int active = 0; > > + struct wakeup_source *last_activity_ws = NULL; > > + > > + rcu_read_lock(); > > + list_for_each_entry

Re: [PATCH] perf: prevent overflow in size calculation

2012-07-19 Thread Namhyung Kim
Hi, Cody On Thu, 19 Jul 2012 17:13:35 -0700, Cody Schafer wrote: > A large enough symbol size causes an overflow in the size parameter to the > histogram allocation, leading to a segfault in symbol__inc_addr_samples later > on when this histogram is accessed. > > In the case of being called via pe

Re: [PATCH v10 7/9] x86/tlb: enable tlb flush range support for x86

2012-07-19 Thread H. Peter Anvin
Separate is better. When I say clean patch I mean in a separate email so git am can process it. Alex Shi wrote: >On 07/20/2012 07:56 AM, H. Peter Anvin wrote: > >> On 07/19/2012 04:52 PM, Alex Shi wrote: >>> >>> Sure, it is a bug, the fix had sent: >>> https://lkml.org/lkml/2012/7/6/350 >>> >>

Re: [PATCH 4/9] KVM: MMU: track the refcount when unmap the page

2012-07-19 Thread Marcelo Tosatti
On Tue, Jul 17, 2012 at 09:52:52PM +0800, Xiao Guangrong wrote: > It will trigger a WARN_ON if the page has been freed but it is still > used in mmu, it can help us to detect mm bug early > > Signed-off-by: Xiao Guangrong > --- > arch/x86/kvm/mmu.c |8 > 1 files changed, 8 insertion

Re: [PATCH 2/9] KVM: x86: simplify read_emulated

2012-07-19 Thread Marcelo Tosatti
On Tue, Jul 17, 2012 at 09:51:34PM +0800, Xiao Guangrong wrote: > No need split mmio read region into 8-bits pieces since we do it in > emulator_read_write_onepage > > Signed-off-by: Xiao Guangrong > --- > arch/x86/kvm/emulate.c | 29 - > 1 files changed, 12 inserti

Re: [PATCH 1/9] KVM: x86: remvoe unnecessary mark_page_dirty

2012-07-19 Thread Marcelo Tosatti
Applied all patches except 2, 3 and 5, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH 5/9] KVM: MMU: fask check write-protect for direct mmu

2012-07-19 Thread Marcelo Tosatti
On Tue, Jul 17, 2012 at 09:53:29PM +0800, Xiao Guangrong wrote: > If it have no indirect shadow pages we need not protect any gfn, > this is always true for direct mmu without nested > > Signed-off-by: Xiao Guangrong Xiao, What is the motivation? Numbers please. In fact, what case was the orig

Re: [PATCH 3/9] KVM: x86: introduce set_mmio_exit_info

2012-07-19 Thread Marcelo Tosatti
On Tue, Jul 17, 2012 at 09:52:13PM +0800, Xiao Guangrong wrote: > Introduce set_mmio_exit_info to cleanup the common code > > Signed-off-by: Xiao Guangrong > --- > arch/x86/kvm/x86.c | 33 + > 1 files changed, 17 insertions(+), 16 deletions(-) This makes the co

RE: 0xB16B00B5? Really? (was Re: Move hyperv out of the drivers/staging/ directory)

2012-07-19 Thread KY Srinivasan
> -Original Message- > From: Greg KH (gre...@linuxfoundation.org) > [mailto:gre...@linuxfoundation.org] > Sent: Thursday, July 19, 2012 7:29 PM > To: KY Srinivasan > Cc: Paolo Bonzini; de...@linuxdriverproject.org; linux-kernel@vger.kernel.org; > virtualizat...@lists.osdl.org > Subject: R

linux-next: build failure after merge of the scsi tree

2012-07-19 Thread Stephen Rothwell
Hi James, After merging the scsi tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: drivers/base/dd.c:27:28: fatal error: scsi/scsi_scan.h: No such file or directory Caused by commit eea03c20ae38 ("Make wait_for_device_probe() also do scsi_complete_async_scans()") from L

RE: [RFC][PATCH v2 2/3] Hold multiple logs

2012-07-19 Thread Seiji Aguchi
Thank you for describing this in detail. > Yes - if the OOPs is instrumental in the path leading to the hang/panic - > then the OOPS is the first place to look for the root cause of > the problem. But it will be a case by case analysis. > Sometimes the OOPS might be unconnected. If possible we'd

Re: 3.5-rc6 futex_wait_requeue_pi oops.

2012-07-19 Thread Darren Hart
On 07/19/2012 04:22 PM, Darren Hart wrote: > > > On 07/13/2012 11:54 AM, Dave Jones wrote: >> On Fri, Jul 13, 2012 at 08:47:38PM +0200, Thomas Gleixner wrote: >> > On Fri, 13 Jul 2012, Dave Jones wrote: >> > >> > > Looks like calling futex() with garbage makes things unhappy. >> > >> >

RE: 0xB16B00B5? Really? (was Re: Move hyperv out of the drivers/staging/ directory)

2012-07-19 Thread KY Srinivasan
> -Original Message- > From: Anthony Liguori [mailto:anth...@codemonkey.ws] > Sent: Thursday, July 19, 2012 7:18 PM > To: KY Srinivasan > Cc: Greg KH (gre...@linuxfoundation.org); Paolo Bonzini; > de...@linuxdriverproject.org; linux-kernel@vger.kernel.org; > virtualizat...@lists.osdl.org

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

2012-07-19 Thread Stephen Rothwell
Hi James, Today's linux-next merge of the scsi tree got a conflict in drivers/scsi/scsi_wait_scan.c between commit eea03c20ae38 ("Make wait_for_device_probe() also do scsi_complete_async_scans()") from Linus' tree and commit 01444e1106cb ("[SCSI] Remove scsi_wait_scan module") from the scsi tree.

Re: [PATCH 15/90] staging: comedi: adv_pci1723: move comedi_pci_enable() into the attach

2012-07-19 Thread gre...@linuxfoundation.org
On Thu, Jul 19, 2012 at 06:58:38PM -0500, H Hartley Sweeten wrote: > On Thursday, July 19, 2012 4:35 PM, gregkh wrote: > > On Thu, Jul 19, 2012 at 06:31:23PM -0500, H Hartley Sweeten wrote: > >> If the comedi pci drivers have the "attach_pci" callback defined, the > >> PCI api does correctly probe

[PATCH] perf: prevent overflow in size calculation

2012-07-19 Thread Cody Schafer
A large enough symbol size causes an overflow in the size parameter to the histogram allocation, leading to a segfault in symbol__inc_addr_samples later on when this histogram is accessed. In the case of being called via perf-report, this returns back and gracefully ignores the sample, eventually

Re: [PATCH 6/6] leds: add new lp8788 led driver

2012-07-19 Thread Bryan Wu
On Wed, Jul 18, 2012 at 10:34 PM, Kim, Milo wrote: > TI LP8788 PMU has the current sink as the keyboard led driver. > The brightness is controlled by the i2c commands. > Configurable parameters can be defined in the platform side. > > Signed-off-by: Milo(Woogyom) Kim > --- > drivers/leds/Kconfig

Re: [PATCH v10 7/9] x86/tlb: enable tlb flush range support for x86

2012-07-19 Thread Alex Shi
On 07/20/2012 07:56 AM, H. Peter Anvin wrote: > On 07/19/2012 04:52 PM, Alex Shi wrote: >> >> Sure, it is a bug, the fix had sent: >> https://lkml.org/lkml/2012/7/6/350 >> > > Could you please re-send that as a clean patch? > > -hpa > Since, it has not impact for the serial left patch

Re: [PATCH v10 7/9] x86/tlb: enable tlb flush range support for x86

2012-07-19 Thread H. Peter Anvin
On 07/19/2012 04:52 PM, Alex Shi wrote: > > Sure, it is a bug, the fix had sent: > https://lkml.org/lkml/2012/7/6/350 > Could you please re-send that as a clean patch? -hpa -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@

RE: [PATCH 00/90] staging: comedi: cleanup the pci_dev usage

2012-07-19 Thread H Hartley Sweeten
On Thursday, July 19, 2012 4:53 PM, Greg KH wrote: > On Wed, Jul 18, 2012 at 06:23:20PM -0700, H Hartley Sweeten wrote: >> All the comedi pci drivers currently store a pointer to the pci_dev >> in their private data. We can use the 'struct device *hw_dev' variable >> in the comedi_device struct ins

RE: [PATCH 15/90] staging: comedi: adv_pci1723: move comedi_pci_enable() into the attach

2012-07-19 Thread H Hartley Sweeten
On Thursday, July 19, 2012 4:35 PM, gregkh wrote: > On Thu, Jul 19, 2012 at 06:31:23PM -0500, H Hartley Sweeten wrote: >> If the comedi pci drivers have the "attach_pci" callback defined, the >> PCI api does correctly probe the driver. The comedi_pci_auto_config() >> then passes the pci_dev directl

Re: linux-next: manual merge of the staging tree with the target-merge tree

2012-07-19 Thread Greg KH
On Thu, Jul 19, 2012 at 02:53:01PM +1000, Stephen Rothwell wrote: > Hi Greg, > > Today's linux-next merge of the staging tree got a conflict in > drivers/staging/Kconfig between commit d0146d396bfa ("tcm_vhost: Initial > merge for vhost level target fabric driver") from the target-merge tree > and

Re: [PATCH 00/90] staging: comedi: cleanup the pci_dev usage

2012-07-19 Thread Greg KH
On Wed, Jul 18, 2012 at 06:23:20PM -0700, H Hartley Sweeten wrote: > All the comedi pci drivers currently store a pointer to the pci_dev > in their private data. We can use the 'struct device *hw_dev' variable > in the comedi_device struct instead and introduce a wrapper for > to_pci_dev() to allow

Re: [PATCH v10 7/9] x86/tlb: enable tlb flush range support for x86

2012-07-19 Thread Alex Shi
>> +static inline void flush_tlb_mm_range(struct vm_area_struct *vma, >> + unsigned long start, unsigned long end, unsigned long vmflag) >> +{ >> +if (vma->vm_mm == current->active_mm) >> +__flush_tlb(); >> +} > > There's a problem with this in one of my randconfig tests. I

Re: [PATCH 1/4] ACPI: Add acpi_pr_() interfaces

2012-07-19 Thread Toshi Kani
On Thu, 2012-07-19 at 16:32 -0600, Shuah Khan wrote: > On Thu, 2012-07-19 at 14:51 -0600, Toshi Kani wrote: > > > If your concern is actually a performance bottleneck in acpi_get_name() > > you found in the code, you should report it to the ACPI CA team. > > I have tried my best to get you to und

  1   2   3   4   5   >