acpi: remove unused LIST_HEAD(acpi_device_list) && more static analysis

2012-07-10 Thread cheng renquan
I just came across this file and found this LIST_HEAD(acpi_device_list) was referred in early days before 2.6.11 but not in use nowadays, ^1da177e drivers/acpi/scan.c (Linus Torvalds 2005-04-16 15:20:36 -0700 31) static LIST_HEAD(acpi_device_list); it is expanded to this line of referri

Re: [PATCH net-next 6/6] r8169: support RTL8168G

2012-07-10 Thread Francois Romieu
Hayes Wang : > fix incorrct argument in rtl_hw_init_8168g. > > Signed-off-by: Hayes Wang Thanks Hayes. It's available with proper attribution and subject at: git://violet.fr.zoreil.com/romieu/linux davem-next.r8169 -- Ueimor -- To unsubscribe from this list: send the line "unsubscribe linux

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

2012-07-10 Thread Rajendra Nayak
On Tuesday 10 July 2012 12:22 PM, ABRAHAM, KISHON VIJAY wrote: +TWL4030 USB PHY AND COMPARATOR >> + - compatible : Should be "ti,twl4030-usb" >> + - interrupts : The interrupt numbers to the cpu should be specified. >> First >> + interrupt number is the otg interrupt number that raises ID i

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

2012-07-10 Thread Venu Byravarasu
> Hi, > > On Tue, Jul 10, 2012 at 11:33 AM, Venu Byravarasu > wrote: > >> > + > >> > +#ifdef CONFIG_PM > > > > Should it not be CONFIG_PM_SLEEP instead of just CONFIG_PM? > > Why? I think we should have CONFIG_PM_SLEEP only when we have > *suspend*, *resume* hooks. But this driver has only *runt

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

2012-07-10 Thread Rajendra Nayak
On Tuesday 10 July 2012 12:18 PM, ABRAHAM, KISHON VIJAY wrote: Hi, On Tue, Jul 10, 2012 at 11:33 AM, Venu Byravarasu wrote: + +#ifdef CONFIG_PM Should it not be CONFIG_PM_SLEEP instead of just CONFIG_PM? Why? I think we should have CONFIG_PM_SLEEP only when we have *suspend*, *resume* hoo

Re: [PATCH 00/36] AArch64 Linux kernel port

2012-07-10 Thread Ingo Molnar
* Arnd Bergmann wrote: > On Saturday 07 July 2012, Olof Johansson wrote: > > > > ARM introduced AArch64 as part of the ARMv8 architecture > > > > With the risk of bikeshedding here, but I find the name awkward. How > > about just naming the arch port arm64 instead? It's considerably more > > d

Re: [PATCH net-next 6/6] r8169: support RTL8168G

2012-07-10 Thread Hayes Wang
1. Remove rtl_ocpdr_cond. No waiting is needed for mac_ocp_{write / read}. 2. Set ocp_base to OCP_STD_PHY_BASE after rtl8168g_1_hw_phy_config. --- drivers/net/ethernet/realtek/r8169.c | 14 +++--- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/drivers/net/ethernet/realtek

[PATCH] block: remove dead func declaration

2012-07-10 Thread Yuanhan Liu
__generic_unplug_device() function is removed with commit 7eaceaccab5f40bbfda044629a6298616aeaed50, which forgot to remove the declaration at meantime. Here remove it. Signed-off-by: Yuanhan Liu --- block/blk.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/block/blk.h

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

2012-07-10 Thread Gupta, Ajay Kumar
Hi, > Documentation/devicetree/bindings/usb/omap-usb.txt | 34 > - > drivers/usb/musb/omap2430.c| 52 > [...] > + of_property_read_u32(np, "mode", (u32 *)&pdata->mode); > + of_property_read_u32(np, "interface_type"

Re: Boot regression on Mackerel with current mainline

2012-07-10 Thread Chris Ball
Hi Guennadi, On Tue, Jul 10 2012, Guennadi Liakhovetski wrote: >> > The latter one looks big because of a rename, but with "-M" it's pretty >> > trivial. Chris, do you agree? >> >> Is the minimal fix to just add "| IRQF_ONESHOT" to the request_threaded_irq >> argument? If so, I'd rather push ju

Re: [PATCH] drivers/rtc/rtc-twl.c: fix threaded IRQ to use IRQF_ONESHOT

2012-07-10 Thread Lars-Peter Clausen
On 07/10/2012 12:15 AM, Andrew Morton wrote: > On Fri, 6 Jul 2012 09:33:54 -0700 > Kevin Hilman wrote: > >> Requesting a threaded interrupt without a primary handler and without >> IRQF_ONESHOT is dangerous, and after commit 1c6c6952 (genirq: Reject >> bogus threaded irq requests), these request

linux-next: manual merge of the akpm tree with the driver-core.current tree

2012-07-10 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm tree got a conflict in kernel/printk.c between commit 5becfb1df5ac ("kmsg: merge continuation records while printing") from the driver-core.current tree and commit "printk: only look for prefix levels in kernel messages" from the akpm tree. I fixed

Re: 82571EB: Detected Hardware Unit Hang

2012-07-10 Thread Joe Jin
When I debug the driver I found before Detected HW hang, driver unable to clean and reclaim the resources: 1457 while ((eop_desc->upper.data & cpu_to_le32(E1000_TXD_STAT_DD)) && <== at here upper.data always is 0x300 1458(count < tx_ring->count)) { <--- snip ---> 148

Re: acpi: remove unused LIST_HEAD(acpi_device_list) && more static analysis

2012-07-10 Thread cheng renquan
On Tue, Jul 10, 2012 at 12:00 AM, cheng renquan wrote: > $ git diff HEAD -- drivers/acpi/scan.c > diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c > index 85cbfdc..7d26ae0 100644 > --- a/drivers/acpi/scan.c > +++ b/drivers/acpi/scan.c > @@ -28,7 +28,7 @@ extern struct acpi_device *acpi_root;

linux-next: Tree for July 10

2012-07-10 Thread Stephen Rothwell
Hi all, Changes since 20120709: I have not done the powerpc allyesconfig build today as it is too broken. The ext4 tree gained a build failure so I used the version from next-20120709. The v4l-dvb tree still had its build failure so I used the version from next-20120706. The infiniband tree lo

Re: Boot regression on Mackerel with current mainline

2012-07-10 Thread Guennadi Liakhovetski
On Tue, 10 Jul 2012, Chris Ball wrote: > Hi Guennadi, > > On Tue, Jul 10 2012, Guennadi Liakhovetski wrote: > >> > The latter one looks big because of a rename, but with "-M" it's pretty > >> > trivial. Chris, do you agree? > >> > >> Is the minimal fix to just add "| IRQF_ONESHOT" to the reques

Re: [tip:perf/core] perf/x86: Fix USER/KERNEL tagging of samples

2012-07-10 Thread Peter Zijlstra
On Mon, 2012-07-09 at 20:41 +0200, Ingo Molnar wrote: > > +static unsigned long get_segment_base(unsigned int segment) > > +{ > > + struct desc_struct *desc; > > + int idx = segment >> 3; > > + > > + if ((segment & SEGMENT_TI_MASK) == SEGMENT_LDT) { > > + if (idx > LDT_ENTRI

Re: [PATCH] pwm: add lpc32xx pwm support

2012-07-10 Thread Roland Stigge
Hi, On 07/10/2012 08:48 AM, Thierry Reding wrote: >> --- /dev/null +++ >> b/Documentation/devicetree/bindings/pwm/lpc32xx-pwm.txt @@ -0,0 >> +1,12 @@ +LPC32XX PWM controller + +Required properties: +- >> compatible: should be "nxp,lpc3220-pwm" > > Does the compatible have to be lpc3220-pwm? Can't

Re: [PATCH 1/2] acpi : cpu hot-remove returns error number when cpu_down() fails

2012-07-10 Thread Srivatsa S. Bhat
On 07/10/2012 10:27 AM, Yasuaki Ishimatsu wrote: > Hi Toshi, > > 2012/07/10 6:15, Toshi Kani wrote: >> On Mon, 2012-07-09 at 16:55 +0530, Srivatsa S. Bhat wrote: >>> On 07/09/2012 08:01 AM, Yasuaki Ishimatsu wrote: Hi Srivatsa, Thank you for your reviewing. 2012/07/06 18:5

Re: [PATCH] pwm: add lpc32xx pwm support

2012-07-10 Thread Thierry Reding
On Tue, Jul 10, 2012 at 09:56:08AM +0200, Roland Stigge wrote: > Hi, > > On 07/10/2012 08:48 AM, Thierry Reding wrote: > >> --- /dev/null +++ > >> b/Documentation/devicetree/bindings/pwm/lpc32xx-pwm.txt @@ -0,0 > >> +1,12 @@ +LPC32XX PWM controller + +Required properties: +- > >> compatible: shoul

Re: [tip:perf/core] perf/x86: Fix USER/KERNEL tagging of samples

2012-07-10 Thread Ingo Molnar
* Peter Zijlstra wrote: > > > +static unsigned long code_segment_base(struct pt_regs *regs) > > > +{ > > > +#ifdef CONFIG_32BIT > > > + if (user_mode(regs) && regs->cs != __USER_CS) > > > + return get_segment_base(regs->cs); > > > +#else > > > + if (test_thread_flag(TIF_IA32)

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

2012-07-10 Thread ABRAHAM, KISHON VIJAY
Hi, On Tue, Jul 10, 2012 at 11:57 AM, Rajendra Nayak wrote: > On Thursday 28 June 2012 05:21 PM, Kishon Vijay Abraham I wrote: >> >> 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 Abr

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

2012-07-10 Thread ABRAHAM, KISHON VIJAY
Hi, On Tue, Jul 10, 2012 at 11:59 AM, Rajendra Nayak wrote: > On Thursday 28 June 2012 05:21 PM, Kishon Vijay Abraham I wrote: >> >> 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

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

2012-07-10 Thread ABRAHAM, KISHON VIJAY
Hi, On Tue, Jul 10, 2012 at 12:14 PM, Rajendra Nayak wrote: > On Tuesday 10 July 2012 11:58 AM, ABRAHAM, KISHON VIJAY wrote: >> >> Hi, >> >> On Tue, Jul 10, 2012 at 11:28 AM, Rajendra Nayak wrote: >>> >>> On Thursday 28 June 2012 05:21 PM, Kishon Vijay Abraham I wrote: Add device

Re: [tip:perf/core] perf/x86: Fix USER/KERNEL tagging of samples

2012-07-10 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Mon, 2012-07-09 at 20:41 +0200, Ingo Molnar wrote: > > > +static unsigned long get_segment_base(unsigned int segment) > > > +{ > > > + struct desc_struct *desc; > > > + int idx = segment >> 3; > > > + > > > + if ((segment & SEGMENT_TI_MASK) == SEGMENT_LDT

Re: [PATCH 1/2] acpi : cpu hot-remove returns error number when cpu_down() fails

2012-07-10 Thread Yasuaki Ishimatsu
Hi Srivatsa, 2012/07/10 16:57, Srivatsa S. Bhat wrote: On 07/10/2012 10:27 AM, Yasuaki Ishimatsu wrote: Hi Toshi, 2012/07/10 6:15, Toshi Kani wrote: On Mon, 2012-07-09 at 16:55 +0530, Srivatsa S. Bhat wrote: On 07/09/2012 08:01 AM, Yasuaki Ishimatsu wrote: Hi Srivatsa, Thank you for your r

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

2012-07-10 Thread Bjørn Mork
Stephen Rothwell writes: > Hi all, > > After merging the net-next tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > drivers/net/usb/qmi_wwan.c:381:13: error: 'qmi_wwan_unbind_shared' undeclared > here (not in a function) > > Caused by a bad automatic merge between comm

Re: [PATCH RFC 0/2] kvm: Improving directed yield in PLE handler

2012-07-10 Thread Raghavendra K T
On 07/09/2012 01:25 PM, Christian Borntraeger wrote: On 09/07/12 08:20, Raghavendra K T wrote: Currently Pause Looop Exit (PLE) handler is doing directed yield to a random VCPU on PL exit. Though we already have filtering while choosing the candidate to yield_to, we can do better. Problem is, f

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

2012-07-10 Thread Rajendra Nayak
On Tuesday 10 July 2012 01:43 PM, ABRAHAM, KISHON VIJAY wrote: Hi, On Tue, Jul 10, 2012 at 11:57 AM, Rajendra Nayak wrote: On Thursday 28 June 2012 05:21 PM, Kishon Vijay Abraham I wrote: Add usb otg data node in omap4/omap3 device tree file. Also update the node with board specific setting

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

2012-07-10 Thread Rajendra Nayak
On Tuesday 10 July 2012 01:46 PM, ABRAHAM, KISHON VIJAY wrote: Hi, On Tue, Jul 10, 2012 at 11:59 AM, Rajendra Nayak wrote: On Thursday 28 June 2012 05:21 PM, Kishon Vijay Abraham I wrote: All the unnessary functions in omap-phy-internal is removed. These functionality are now handled by omap

Re: linux-next: manual merge of the arm-soc tree with the i2c-embedded tree

2012-07-10 Thread Wolfram Sang
On Tue, Jul 10, 2012 at 04:41:30PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the arm-soc tree got a conflict in > drivers/i2c/busses/i2c-nomadik.c between commit af97bace2cca > ("i2c-nomadik: move header to ") from > the i2c-embedded tree and commits 32e42c687e0a ("A

mptscsi: BUG: unable to handle kernel NULL pointer, in scsi_send_eh_cmnd

2012-07-10 Thread Meelis Roos
I am using Linux 3.4.0 with a 53c1030 and a tape library that sometimes barfs for yet unknown reasons. When it happens, I get a BUG with backtrace and this scsi channel is dead until I reboot. Seems to be something with either generic scsi error handling or with mpt scsi. Full dmesg: [0.00

Re: [RFC, PATCH] CLONE_NEWIPC and exit_group()

2012-07-10 Thread Kirill A. Shutemov
On Tue, Jun 26, 2012 at 03:04:25PM +0300, Kirill A. Shutemov wrote: > Hi, > > Patch to move kern_unmount() out of exit_group() code path is below. Andrew, do you have any opinion about the patch? > Dmitry, could you check if it's beneficial for your use-case? > > Results are not that impressive

Re: [PATCH] mfd: Guard max77686_pmic_dt_match with CONFIG_OF

2012-07-10 Thread Samuel Ortiz
Hi Axel, On Mon, Jul 09, 2012 at 10:29:00PM +0800, Axel Lin wrote: > This fixes below build warning if CONFIG_OF is not set. > > CC drivers/mfd/max77686.o > drivers/mfd/max77686.c:37:42: warning: 'max77686_pmic_dt_match' defined but > not used [-Wunused-variable] > > Signed-off-by: Axel

Re: [PATCH] mfd: Export pm80x_regmap_config

2012-07-10 Thread Samuel Ortiz
Hi Axel, On Mon, Jul 09, 2012 at 10:44:21PM +0800, Axel Lin wrote: > This fixes below build error when CONFIG_MFD_88PM800=m. > > ERROR: "pm80x_regmap_config" [drivers/mfd/88pm800.ko] undefined! > make[1]: *** [__modpost] Error 1 > make: *** [modules] Error 2 > > Signed-off-by: Axel Lin > --- >

MDaemon Notification -- Attachment Removed

2012-07-10 Thread Postmaster
--- MDaemon has detected restricted attachments within an email message --- >From : linux-kernel@vger.kernel.org To: j...@grove-ent.com Subject : [***SPAM*

Re: [PATCH 1/2] mfd: arizona: Add support for multiple PDM speaker outputs

2012-07-10 Thread Samuel Ortiz
Hi Mark, On Mon, Jul 09, 2012 at 07:33:14PM +0100, Mark Brown wrote: > The registers have stride 2 so we can write the loop properly now. > > Signed-off-by: Mark Brown > --- > drivers/mfd/arizona-core.c|5 ++--- > include/linux/mfd/arizona/pdata.h |2 +- > 2 files changed, 3 ins

Re: [tip:perf/core] perf/x86: Fix USER/KERNEL tagging of samples

2012-07-10 Thread Peter Zijlstra
On Tue, 2012-07-10 at 10:21 +0200, Ingo Molnar wrote: > Another boundary condition would be when we intentionally > twiddle the GDT: such as during suspend or during BIOS upcalls. > Can we then get a PMU interrupt? If yes then this will probably > result in garbage: > > > > > + desc

RE: [RFC 0/2] USB gadget - configfs

2012-07-10 Thread Andrzej Pietrasiewicz
Dear Joel, Thank you for your review. @Sebastian, Alan, Felipe: Thank you, too. On Monday, July 02, 2012 11:09 AM Joel Becker wrote: > > > As a prerequisite it adds an operation to configfs. The operation allows > > checking if it is ok to remove a pseudo directory corresponding to a > > con

Re: [PATCH] net: cgroup: fix access the unallocated memory in netprio cgroup

2012-07-10 Thread Gao feng
> Hi Gao > > Is it still needed to call update_netdev_tables() from write_priomap() ? > Yes, I think it's needed,because read_priomap will show all of the net devices, But we may add the netdev after create a netprio cgroup, so the new added netdev's priomap will not be allocated. if we don't

Re: [PATCH 1/1] mfd: ab8500: Clean-up the last two ab8500 related DT match tables

2012-07-10 Thread Samuel Ortiz
Hi Lee, On Fri, Jul 06, 2012 at 01:43:18PM +0100, Lee Jones wrote: > A patch was recently submitted to stop all ab8500 devices from > being registered through Device Tree. Instead, only the db8500 > will be DT:ed and the rest will continue to be registered via > the MFD API, as they always were. >

Re: [tip:perf/core] perf/x86: Fix USER/KERNEL tagging of samples

2012-07-10 Thread Peter Zijlstra
On Mon, 2012-07-09 at 10:55 -0700, Linus Torvalds wrote: > However, it is worth pointing out that sp/bp have exactly the same > segment base issue. So if you do stack tracing into user mode, you > should really do the same thing for those. And quite frankly, at that > point vm86 mode and the stack

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

2012-07-10 Thread Mark Brown
On Tue, Jul 10, 2012 at 03:32:10PM +1000, Stephen Rothwell wrote: > Caused by commit 01eaf2458773 ("extcon: Convert extcon_gpio to > devm_gpio_request_one"). devm_gpio_request_one is not currently exported > to modules. A patch for this has been in -next for most of this release cycle and really

Re: [RFC PATCH net-next] ipvs: add missing lock in ip_vs_ftp_init_conn()

2012-07-10 Thread Simon Horman
On Tue, Jul 03, 2012 at 10:12:41AM +0300, Julian Anastasov wrote: > > Hello, > > On Thu, 28 Jun 2012, Xiaotian Feng wrote: > > > We met a kernel panic in 2.6.32.43 kernel: > > > > [2680191.848044] IPVS: ip_vs_conn_hash(): request for already hashed, > > called from run_timer_softirq+0x17

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

2012-07-10 Thread Samuel Ortiz
Hi Stephen, On Mon, Jul 09, 2012 at 01:57:19PM +1000, Stephen Rothwell wrote: > Hi Samuel, > > After merging the mfd tree, today's linux-next build (x86_64 allmodconfig) > failed like this: > > ERROR: "arizona_dai_ops" [sound/soc/codecs/snd-soc-wm5102.ko] undefined! > ERROR: "wm5102_aod" [driver

Re: [PATCH] pinctrl: Add one-register-per-pin type device tree based pinctrl driver

2012-07-10 Thread Tony Lindgren
* Tony Lindgren [120627 03:37]: > * Stephen Warren [120626 10:10]: > > On 06/26/2012 07:43 AM, Tony Lindgren wrote: > > ... > > > Subject: [PATCH] pinctrl: Add one-register-per-pin type device tree based > > > pinctrl driver > > > > > > Add one-register-per-pin type device tree based pinctrl dr

mptscsi: BUG: unable to handle kernel NULL pointer, in scsi_send_eh_cmnd

2012-07-10 Thread Meelis Roos
Resending with correct linux-scsi address - please rteply to this one if you see duplicate messages. I am using Linux 3.4.0 with a 53c1030 and a tape library that sometimes barfs for yet unknown reasons. When it happens, I get a BUG with backtrace and this scsi channel is dead until I reboot. S

Re: [PATCH net-next 6/6] r8169: support RTL8168G

2012-07-10 Thread Francois Romieu
(you should include a Signed-off-by) Hayes Wang : > 1. Remove rtl_ocpdr_cond. No waiting is needed for mac_ocp_{write / read}. Nit: it would not hurt to do a better job than me and save some commit noise getting these things right before they pollute the history. :o) > 2. Set ocp_base to OCP_ST

Re: [PATCH] net: cgroup: fix access the unallocated memory in netprio cgroup

2012-07-10 Thread Eric Dumazet
On Tue, 2012-07-10 at 16:53 +0800, Gao feng wrote: > > Hi Gao > > > > Is it still needed to call update_netdev_tables() from write_priomap() ? > > > > Yes, I think it's needed,because read_priomap will show all of the net > devices, > > But we may add the netdev after create a netprio cgroup,

Re: mptscsi: BUG: unable to handle kernel NULL pointer, in scsi_send_eh_cmnd

2012-07-10 Thread James Bottomley
On Tue, 2012-07-10 at 11:44 +0300, Meelis Roos wrote: > Resending with correct linux-scsi address - please rteply to this one if > you see duplicate messages. > > I am using Linux 3.4.0 with a 53c1030 and a tape library that sometimes > barfs for yet unknown reasons. When it happens, I get a BUG

Re: [PATCH 6/6] x86: Exit RCU extended QS on notify resume

2012-07-10 Thread Frederic Weisbecker
On Sun, Jul 08, 2012 at 02:17:07PM -0700, Paul E. McKenney wrote: > On Fri, Jul 06, 2012 at 01:43:29PM -0700, Josh Triplett wrote: > > On Fri, Jul 06, 2012 at 09:33:38AM -0700, Paul E. McKenney wrote: > > > On Fri, Jul 06, 2012 at 02:00:18PM +0200, Frederic Weisbecker wrote: > > > > --- a/arch/x86/

[PATCH 0/1] Option for scsi_debug to fake removable devices

2012-07-10 Thread Martin Pitt
Hello all, sorry for resending this twice to the lists. Initially I thought mailing James directly was not appropriate, but I was now told that get_maintainer.pl is actually speaking the truth and I am supposed to do just that. For the purposes of automatically testing udisks and gvfs automounti

[PATCH 1/1] [SCSI] scsi_debug: Add "removable" parameter

2012-07-10 Thread Martin Pitt
Add "removable" module parameter to set the "removable" attribute of any subsequently created debug block device. It is a writable driver option, so that you can switch between removable and "fixed" media block devices in between the add_host calls. This is useful for being able to test the differ

[git pull] Please pull powerpc.git merge branch

2012-07-10 Thread Benjamin Herrenschmidt
Hi Linus ! It looks like my rewrite of our lazy irq scheme is still exposing "interesting" issues left and right. The previous fixes are now causing an occasional BUG_ON to trigger (which this patch turns into a WARN_ON while at it), due to another issue of disconnect of the lazy irq state vs. the

Re: [PATCH RFC 0/2] kvm: Improving directed yield in PLE handler

2012-07-10 Thread Raghavendra K T
On 07/10/2012 03:17 AM, Andrew Theurer wrote: > On Mon, 2012-07-09 at 11:50 +0530, Raghavendra K T wrote: >> Currently Pause Looop Exit (PLE) handler is doing directed yield to a >> random VCPU on PL exit. Though we already have filtering while choosing >> the candidate to yield_to, we can do bett

Re: [Xen-devel] incorrect layout of globals from head_64.S during kexec boot

2012-07-10 Thread Olaf Hering
On Fri, Jul 06, Olaf Hering wrote: > On Fri, Jul 06, Jan Beulich wrote: > > > > Could it be that some code tweaks the stack content used by decompress() > > > in some odd way? But that would most likely lead to a crash, not to > > > unexpected uncompressing results. > > > > Especially if the old

Re: [PATCH] net: cgroup: fix access the unallocated memory in netprio cgroup

2012-07-10 Thread Gao feng
于 2012年07月10日 17:15, Eric Dumazet 写道: > On Tue, 2012-07-10 at 16:53 +0800, Gao feng wrote: >>> Hi Gao >>> >>> Is it still needed to call update_netdev_tables() from write_priomap() ? >>> >> >> Yes, I think it's needed,because read_priomap will show all of the net >> devices, >> >> But we may add t

Re: [PATCH v8] input: keyboard: Add keys driver for the LPC32xx SoC

2012-07-10 Thread Roland Stigge
Hi Dmitry! On 07/10/2012 08:36 AM, Dmitry Torokhov wrote: >> +static void lpc32xx_mod_states(struct lpc32xx_kscan_drv *kscandat, int col) >> +{ >> +u8 key; >> +int row; >> +unsigned changed, scancode, keycode; >> + >> +key = readl(LPC32XX_KS_DATA(kscandat->kscan_base, col)); >> +

Re: CPU isolation question again

2012-07-10 Thread Luming Yu
On Wed, Jul 4, 2012 at 10:36 AM, Frederic Weisbecker wrote: > On Wed, Jul 04, 2012 at 10:12:43PM +0800, Luming Yu wrote: >> On Wed, Jul 4, 2012 at 9:25 PM, Frederic Weisbecker >> wrote: >> > On Wed, Jul 04, 2012 at 08:42:29PM +0800, Luming Yu wrote: >> >> On Tue, Jul 3, 2012 at 7:28 PM, Frederic

Re: [PATCH] mm: hugetlb: flush dcache before returning zeroed huge page to userspace

2012-07-10 Thread Will Deacon
Hi Hugh, Cheers for looking at this. On Tue, Jul 10, 2012 at 12:57:14AM +0100, Hugh Dickins wrote: > On Mon, 9 Jul 2012, Will Deacon wrote: > > On Mon, Jul 09, 2012 at 01:25:23PM +0100, Michal Hocko wrote: > > > On Wed 04-07-12 15:32:56, Will Deacon wrote: > > > > diff --git a/mm/hugetlb.c b/mm/h

Re: [tip:perf/core] perf/x86: Fix USER/KERNEL tagging of samples

2012-07-10 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Tue, 2012-07-10 at 10:21 +0200, Ingo Molnar wrote: > > Another boundary condition would be when we intentionally > > twiddle the GDT: such as during suspend or during BIOS upcalls. > > Can we then get a PMU interrupt? If yes then this will probably > > result in g

Re: [tip:perf/core] perf/x86: Fix USER/KERNEL tagging of samples

2012-07-10 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Mon, 2012-07-09 at 10:55 -0700, Linus Torvalds wrote: > > However, it is worth pointing out that sp/bp have exactly the same > > segment base issue. So if you do stack tracing into user mode, you > > should really do the same thing for those. And quite frankly, at th

Re: [MMTests] Interactivity during IO on ext3

2012-07-10 Thread Jan Kara
On Thu 05-07-12 15:56:52, Mel Gorman wrote: > Configuration:global-dhp__io-interactive-performance-ext3 > Result: > http://www.csn.ul.ie/~mel/postings/mmtests-20120424/global-dhp__io-interactive-performance-ext3 > Benchmarks: postmark largedd fsmark-single fsmark-threaded micro >

Re: [tip:perf/core] perf/x86: Fix USER/KERNEL tagging of samples

2012-07-10 Thread Peter Zijlstra
On Tue, 2012-07-10 at 11:02 +0200, Peter Zijlstra wrote: > Ingo, do you want me to do a version where I simply bail on everything > if regs->{cs,ss} != {__USER_CS, __USER32_CS} || regs->flags & VM ? Here's a variant that does that.. --- Subject: perf/x86: Fix USER/KERNEL tagging of samples prope

Re: [tip:perf/core] perf/x86: Fix USER/KERNEL tagging of samples

2012-07-10 Thread Peter Zijlstra
On Tue, 2012-07-10 at 11:50 +0200, Peter Zijlstra wrote: > + if (regs->cs != __USER32_CS && regs->cs != __USER_CS) > + return 0; > + > + if (regs->ss != __USER32_DS && regs->ss != __USER_DS) > + return 0; Those should be return 1, they are a 32bit callchain

Re: [tip:perf/core] perf/x86: Fix USER/KERNEL tagging of samples

2012-07-10 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Tue, 2012-07-10 at 11:02 +0200, Peter Zijlstra wrote: > > Ingo, do you want me to do a version where I simply bail on everything > > if regs->{cs,ss} != {__USER_CS, __USER32_CS} || regs->flags & VM ? > > Here's a variant that does that.. > arch/x86/include/asm/pe

[tip:x86/asm] x86/mm/mtrr: Fix alignment determination in range_to_mtrr()

2012-07-10 Thread tip-bot for Jan Beulich
Commit-ID: 1ba9a294141b106b7247649a5c3372d8284eca80 Gitweb: http://git.kernel.org/tip/1ba9a294141b106b7247649a5c3372d8284eca80 Author: Jan Beulich AuthorDate: Fri, 6 Jul 2012 15:07:48 +0100 Committer: Ingo Molnar CommitDate: Tue, 10 Jul 2012 10:38:14 +0200 x86/mm/mtrr: Fix alignment de

[tip:x86/asm] x86/mm/mtrr: Slightly simplify print_mtrr_state()

2012-07-10 Thread tip-bot for Jan Beulich
Commit-ID: a7101d152665817bf7cafc47e7f5dcb1f54664fe Gitweb: http://git.kernel.org/tip/a7101d152665817bf7cafc47e7f5dcb1f54664fe Author: Jan Beulich AuthorDate: Fri, 6 Jul 2012 15:20:35 +0100 Committer: Ingo Molnar CommitDate: Tue, 10 Jul 2012 10:38:15 +0200 x86/mm/mtrr: Slightly simplif

Generic Red-Black Trees: preliminary performance results

2012-07-10 Thread Daniel Santos
I've completed some rudimentary test code. It is designed to compile both in user & kernel space but only currently compiles in userland. I ran this on 9 different versions of gcc, all on x86_64 with CFLAGS="-O2 -g3 -pipe -march=k8". The below summary data shows the % increase in time consumed (

Re: [RFC PATCH v3 0/13] memory-hotplug : hot-remove physical memory

2012-07-10 Thread Yasuaki Ishimatsu
Hi Christoph, 2012/07/10 0:18, Christoph Lameter wrote: On Mon, 9 Jul 2012, Yasuaki Ishimatsu wrote: Even if you apply these patches, you cannot remove the physical memory completely since these patches are still under development. I want you to cooperate to improve the physical memory hot-re

[PATCH RFC] mm/hugetlb_cgroup: Add huge_page_order check to avoid incorrectly uncharge

2012-07-10 Thread Wanpeng Li
From: Wanpeng Li Against linux-next: Function alloc_huge_page will call hugetlb_cgroup_charge_cgroup to charge pages, the compound page have less than 3 pages will not charge to hugetlb cgroup. When alloc_huge_page fails it will call hugetlb_cgroup_uncharge_cgroup to uncharge pages, however, hug

Re: [PATCH RFC 0/2] kvm: Improving directed yield in PLE handler : detailed result

2012-07-10 Thread Raghavendra K T
On 07/10/2012 03:17 AM, Andrew Theurer wrote: On Mon, 2012-07-09 at 11:50 +0530, Raghavendra K T wrote: Currently Pause Looop Exit (PLE) handler is doing directed yield to a random VCPU on PL exit. Though we already have filtering while choosing the candidate to yield_to, we can do better. [.

Re: [PATCH 2/2] Input: bcm5974 - Add support for 2012 MacBook Pro Retina

2012-07-10 Thread Jiri Kosina
On Mon, 9 Jul 2012, Henrik Rydberg wrote: > Add support for the 15'' MacBook Pro Retina model (MacBookPro10,1). > > Patch originally written by clipcarl (forums.opensuse.org). > > Signed-off-by: Henrik Rydberg > --- > Hi Dmitry, > > Here is a patch for the new retina I picked up from the anony

Re: [PATCH 00/36] AArch64 Linux kernel port

2012-07-10 Thread Catalin Marinas
On Sat, Jul 07, 2012 at 10:30:58AM +0100, Mikael Pettersson wrote: > Catalin Marinas writes: > > Compilation requires a new aarch64-none-linux-gnu- > > toolchain (http://gcc.gnu.org/ml/gcc-patches/2012-05/msg01694.html). > > Where are the corresponding binutils patches? Without those it's > imp

Re: [PATCH] trace: add ability to set a target task for events

2012-07-10 Thread Peter Zijlstra
On Wed, 2012-07-04 at 13:08 +0400, Andrew Vagin wrote: > From: Peter Zijlstra > > A few events are interesting not only for a current task. > For example, sched_stat_* are interesting to a task, which > wake up. For this reason, it will be good, if such events will > be delivered to a target task

Re: [PATCH 00/36] AArch64 Linux kernel port

2012-07-10 Thread Catalin Marinas
On Tue, Jul 10, 2012 at 08:10:23AM +0100, Ingo Molnar wrote: > * Arnd Bergmann wrote: > > On Saturday 07 July 2012, Olof Johansson wrote: > > > > ARM introduced AArch64 as part of the ARMv8 architecture > > > > > > With the risk of bikeshedding here, but I find the name awkward. How > > > about j

[PATCH] mei: module version

2012-07-10 Thread Ortwin Glück
The LMS daemon expects a /sys/modules/mei/version file with, a four digit version number. see http://software.intel.com/en-us/articles/download-the-latest-intel-amt-open-source-drivers/ Signed-off-by: Ortwin Glück --- diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c index 7de1389

Re: [PATCHv4 3/5] ext4: remove unnecessary superblock dirtying

2012-07-10 Thread Artem Bityutskiy
On Wed, 2012-07-04 at 15:11 +0200, Jan Kara wrote: > On Wed 04-07-12 15:21:52, Artem Bityutskiy wrote: > > From: Artem Bityutskiy > > > > This patch changes the '__ext4_handle_dirty_super()' function which is used > > by ext4 to update the superblock via the journal in the following cases: > > >

Re: [PATCH 1/2] KVM: X86: remove read buffer for mmio read

2012-07-10 Thread Gleb Natapov
On Mon, Jul 09, 2012 at 04:34:50PM +0300, Avi Kivity wrote: > On 07/09/2012 04:23 PM, Xiao Guangrong wrote: > > On 07/09/2012 08:49 PM, Avi Kivity wrote: > >> On 07/09/2012 02:23 PM, Gleb Natapov wrote: > >>> > kvm-unit-tests.git has a test for xchg to mmio. Does it still work? > >

Re: [PATCH] mm: hugetlb: flush dcache before returning zeroed huge page to userspace

2012-07-10 Thread Will Deacon
On Tue, Jul 10, 2012 at 10:45:13AM +0100, Will Deacon wrote: > On Tue, Jul 10, 2012 at 12:57:14AM +0100, Hugh Dickins wrote: > > If I start to grep the architectures for non-empty flush_dcache_page(), > > I soon find things in arch/arm such as v4_mc_copy_user_highpage() doing > > if (!test_and_set_

[PATCH v2] net: cgroup: fix access the unallocated memory in netprio cgroup

2012-07-10 Thread Gao feng
there are some out of bound accesses in netprio cgroup. now before accessing the dev->priomap.priomap array,we only check if the dev->priomap exist.and because we don't want to see additional bound checkings in fast path, so we should make sure that dev->priomap is null or array size of dev->priom

Re: [PATCH 1/2] KVM: X86: remove read buffer for mmio read

2012-07-10 Thread Avi Kivity
On 07/10/2012 01:36 PM, Gleb Natapov wrote: > On Mon, Jul 09, 2012 at 04:34:50PM +0300, Avi Kivity wrote: > > On 07/09/2012 04:23 PM, Xiao Guangrong wrote: > > > On 07/09/2012 08:49 PM, Avi Kivity wrote: > > >> On 07/09/2012 02:23 PM, Gleb Natapov wrote: > > >>> > > kvm-unit-tests.git has a te

[PATCH v2] Bluetooth: Add MacBookPro10,1 support

2012-07-10 Thread Henrik Rydberg
Add support for the 2012 15'' MacBook Pro Retina, also known as MacBookPro10,1. The bluetooth device presents itself as Bus 002 Device 008: ID 05ac:8286 Apple, Inc. Device Descriptor: bLength18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 255 Ve

Re: [PATCH] mm: don't invoke __alloc_pages_direct_compact when order 0

2012-07-10 Thread Mel Gorman
On Sun, Jul 08, 2012 at 11:33:14AM +0900, JoonSoo Kim wrote: > 2012/7/7 David Rientjes : > > On Sat, 7 Jul 2012, Joonsoo Kim wrote: > > > >> __alloc_pages_direct_compact has many arguments so invoking it is very > >> costly. > >> And in almost invoking case, order is 0, so return immediately. > >>

Re: [PATCH 1/2] KVM: X86: remove read buffer for mmio read

2012-07-10 Thread Gleb Natapov
On Tue, Jul 10, 2012 at 01:45:15PM +0300, Avi Kivity wrote: > On 07/10/2012 01:36 PM, Gleb Natapov wrote: > > On Mon, Jul 09, 2012 at 04:34:50PM +0300, Avi Kivity wrote: > > > On 07/09/2012 04:23 PM, Xiao Guangrong wrote: > > > > On 07/09/2012 08:49 PM, Avi Kivity wrote: > > > >> On 07/09/2012 02:2

Re: [PATCH 14/16] sched: make __update_entity_runnable_avg() fast

2012-07-10 Thread Peter Zijlstra
On Mon, 2012-07-09 at 13:18 -0700, Benjamin Segall wrote: > Correct, the sum is 1..n. The maximum was chosen as 516/46742 because > that is the point when the approximation of loop + fixed point math > being used reaches a maximum, even if the ideal y^n series would cap out > slightly differently.

[RFC PATCH 0/8] Dmabuf synchronization

2012-07-10 Thread Maarten Lankhorst
This patch implements my attempt at dmabuf synchronization. The core idea is that a lot of devices will have their own methods of synchronization, but more complicated devices allow some way of fencing, so why not export those as dma-buf? This patchset implements dmabufmgr, which is based on ttm's

[RFC PATCH 1/8] dma-buf-mgr: Try 2

2012-07-10 Thread Maarten Lankhorst
From: Maarten Lankhorst Core code based on ttm_bo and ttm_execbuf_util Signed-off-by: Maarten Lankhorst --- drivers/base/Makefile |2 +- drivers/base/dma-buf-mgr-eu.c | 263 + drivers/base/dma-buf-mgr.c| 149 +++ dr

[RFC PATCH 2/8] prime wip: i915

2012-07-10 Thread Maarten Lankhorst
From: Maarten Lankhorst Export the hardware status page so others can read seqno. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/i915_gem_dmabuf.c | 29 -- drivers/gpu/drm/i915/i915_gem_execbuffer.c | 87 drivers/gpu/drm/i915/intel_ringb

[RFC PATCH 3/8] nouveau: Extend prime code

2012-07-10 Thread Maarten Lankhorst
From: Maarten Lankhorst The prime code no longer requires the bo to be backed by a gem object, and cpu access calls have been implemented. This will be needed for exporting fence bo's. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/nouveau/nouveau_drv.h |6 +- drivers/gpu/drm/nouve

[RFC PATCH 4/8] nouveau: add nouveau_bo_vma_add_access

2012-07-10 Thread Maarten Lankhorst
From: Maarten Lankhorst This is needed to allow creation of read-only vm mappings in fence objects. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/nouveau/nouveau_bo.c |6 +++--- drivers/gpu/drm/nouveau/nouveau_drv.h |6 -- 2 files changed, 7 insertions(+), 5 deletions(-) d

[RFC PATCH 6/8] nouveau: nv84 fence prime implementation

2012-07-10 Thread Maarten Lankhorst
From: Maarten Lankhorst Create a dma object for the prime semaphore and every imported sync bo. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/nouveau/nv84_fence.c | 121 -- 1 file changed, 115 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/n

[RFC PATCH 5/8] nouveau: Add methods preparing for prime fencing

2012-07-10 Thread Maarten Lankhorst
From: Maarten Lankhorst This can be used by nv84 and nvc0 to implement hardware fencing, earlier systems will require more thought but can fall back to software for now. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/nouveau/nouveau_bo.c |6 +- drivers/gpu/drm/nouveau/nouveau_c

[RFC PATCH 7/8] nouveau: nvc0 fence prime implementation

2012-07-10 Thread Maarten Lankhorst
From: Maarten Lankhorst Create a read-only mapping for every imported bo, and create a prime bo in in system memory. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/nouveau/nvc0_fence.c | 104 +- 1 file changed, 89 insertions(+), 15 deletions(-) diff --gi

[RFC PATCH 8/8] nouveau: Prime execbuffer submission synchronization

2012-07-10 Thread Maarten Lankhorst
From: Maarten Lankhorst Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/nouveau/nouveau_gem.c | 121 +++-- 1 file changed, 116 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_gem.c b/drivers/gpu/drm/nouveau/nouveau_gem.c index 11c9c

Re: [PATCH 02/13] rbtree: empty nodes have no color

2012-07-10 Thread Daniel Santos
On 07/09/2012 06:35 PM, Michel Lespinasse wrote: > Empty nodes have no color. We can make use of this property to > simplify the code emitted by the RB_EMPTY_NODE and RB_CLEAR_NODE > macros. Also, we can get rid of the rb_init_node function which had > been introduced by commit 88d19cf37952a7e1e3

Re: [PATCH v2] net: cgroup: fix access the unallocated memory in netprio cgroup

2012-07-10 Thread Eric Dumazet
On Tue, 2012-07-10 at 18:44 +0800, Gao feng wrote: > there are some out of bound accesses in netprio cgroup. > - update_netdev_tables(); > + ret = extend_netdev_table(dev, max_len); > + if (ret < 0) > + goto out_free_devname; > + > ret = 0; > rcu_read_lock(); >

Re: [PATCH] gpiolib: Defer failed gpio requests by default

2012-07-10 Thread Mark Brown
On Mon, Jul 09, 2012 at 10:54:41PM +0100, Grant Likely wrote: > I'm fine with this patch, but the patch that adds the twizzling of the > dpm_list when probing needs some tweaking, and this patch must be > applied after that one. I'll go and reply to that patch now (and cc > you if you're not alre

Re: [PATCH v2] net: cgroup: fix access the unallocated memory in netprio cgroup

2012-07-10 Thread Eric Dumazet
On Tue, 2012-07-10 at 13:05 +0200, Eric Dumazet wrote: > On Tue, 2012-07-10 at 18:44 +0800, Gao feng wrote: > > there are some out of bound accesses in netprio cgroup. > > > - update_netdev_tables(); > > + ret = extend_netdev_table(dev, max_len); > > + if (ret < 0) > > + goto out_f

bisected regression since 3.5-rc5 - hang on boot on some sparc64 machines

2012-07-10 Thread Meelis Roos
A regression since 3.5-rc5 stops Sun Fire V100 and Sun Netra X1 sparc64 machines from booting, hanging after enabling serial console. Several different other sparc64 systems work fine with 3.5-rc6. prtconf and full dmesg below. Bisecting leads to 107a84e61cdd3406c842a0e4be7efffd3a05dba6 is the

  1   2   3   4   5   6   >